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
$('div').bind('click', function() { | |
$(this).hide ('slow') | |
}); | |
$('div').bind('click', function() { | |
$(this).nextAll().animate ({opacity:0,}, 1000) | |
}); |
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 posicion = 0; | |
var numeros = new Array() | |
function numerodiapositiva(x){ | |
for (var i=0; i<=x; i++){ | |
document.write(numeros[i]); | |
numeros[i] = i; | |
console.log(numeros[i]); | |
}; | |
} |
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 posicion = 0; | |
var numeros = new Array() | |
function numerodiapositiva(x){ | |
for (var i=0; i<=x; i++){ | |
document.write(numeros[i]); | |
numeros[i] = i; | |
console.log(numeros[i]); | |
}; | |
} |
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
function buscarDesdeHasta(desde,hasta,x) | |
{ | |
var arr = new Array(); | |
var longitud= hasta; | |
for (var i=0; i<=longitud; i+=1) | |
{ | |
if (desde<=hasta) | |
{ | |
arr[i]=desde; |
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
function buscarDesdeHasta(desde,hasta,x) | |
{ | |
var arr = new Array(); | |
var longitud= hasta-desde+1; | |
for (var i=0; i<=longitud; i++) | |
{ | |
if (desde<=hasta) | |
{ | |
arr[i]=desde; |
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 a1 = [0,0,0] | |
var a2 = [0,0,0] | |
var a3 = [0,0,0] | |
var tablero = [a1,a2,a3] | |
tablero[0][1]; | |
function introPieza(jugador,x,y) | |
{ | |
si tablero[x][y] == 0 | |
tablero[x][y} == jugador |
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 n = 6; | |
var resultado = 0; | |
for(var i=0; i<=n; i+=2) { | |
console.log ("el valor de i es"+i); | |
console.log ("el valor de resultado es"+resultado); | |
resultado = resultado+i; | |
console.log ("el valor de resultado + i es"+resultado); | |
} |