Created
October 20, 2011 02:48
-
-
Save JuliaGabellone/1300294 to your computer and use it in GitHub Desktop.
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 iguales (text , number){ | |
if (typeof(text)!='string'){ | |
console.error("Ingrese texto") | |
return false | |
} | |
if (typeof(number)!= 'number'){ | |
console.error("Ingrese numero") | |
return false | |
} | |
if (text != number){ | |
return false | |
} | |
else{ | |
return true | |
} | |
} | |
iguales("3" , 2) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment