Skip to content

Instantly share code, notes, and snippets.

@edinsoncs
Created October 20, 2015 06:02
Show Gist options
  • Save edinsoncs/9eac42be295383dd6df5 to your computer and use it in GitHub Desktop.
Save edinsoncs/9eac42be295383dd6df5 to your computer and use it in GitHub Desktop.
Push
/*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