This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cube = function(n){ | |
return n*n*n; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var numeros = new Array() | |
var estaDentro = function (n) { | |
for (i=0; i<=50; i++) { | |
if ( n === i) { | |
return true ; | |
} | |
} | |
return false ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dia = new Date().getDay(); | |
undefined | |
dia | |
4 | |
function semana(d){ | |
if(d == 4){ | |
console.log("hoy es jueves cariño"); | |
} else{ | |
console.log("hoy no es jueves cariño, lo siento"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tres en ralla | |
var a1 = [0,0,0] | |
var a2 = [0,0,0] | |
var a3 = [0,0,0] | |
var tablero = [a1,a2,a3] | |
/* | |
A continuación a1 (sus posibles) | |
*/ | |
tablero[0][0]; | |
tablero[0][1]; |