Created
January 5, 2016 23:07
-
-
Save edinsoncs/a123e561f5e4c0c2f2b3 to your computer and use it in GitHub Desktop.
buscandodni
This file contains hidden or 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 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