Skip to content

Instantly share code, notes, and snippets.

@edinsoncs
Created January 5, 2016 23:07
Show Gist options
  • Select an option

  • Save edinsoncs/a123e561f5e4c0c2f2b3 to your computer and use it in GitHub Desktop.

Select an option

Save edinsoncs/a123e561f5e4c0c2f2b3 to your computer and use it in GitHub Desktop.
buscandodni
function search(dni) {
var save = {};
var a = dni;
save = a;
var b = prompt("ingresa el dni");
if(typeof save == toString()) {
return "hola";
}
else {
console.log("Analizaremos...");
setTimeout(function(){
console.log("Empezaremos analizar");
setTimeout(function(){
console.log("Se obtuvo lo siguiente");
if(a == b) {
console.log(b);
}
else {
return "Error, Verifique Denuevo";
}
}, 100)
}, 200);
}
}
search('27572754');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment