Created
October 20, 2015 06:02
-
-
Save edinsoncs/9eac42be295383dd6df5 to your computer and use it in GitHub Desktop.
Push
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
/*Push*/ | |
function personas(nombre, dni, apellido) { | |
var nombre = [nombre].push("richard","juan","luis","albert"); | |
var dni = dni; | |
var apellido = apellido; | |
if(Array(nombre)){ | |
console.log("Is Array :)"); | |
setTimeout(function(){ | |
var go = "Empezaremos a borrar"; | |
setInterval(function(clear) { | |
var clear = go; | |
var cleaning = nombre; | |
return console.log(cleaning); | |
}, 5000); | |
}, 10000); | |
} | |
else if(nombre =! new Array()) { | |
console.log("Buu!! :(") | |
} | |
else { | |
console.log("Push insert in Array :)") | |
} | |
} | |
personas("edinson", "2727272", 20); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment