Created
October 15, 2015 04:22
-
-
Save edinsoncs/7391d4ba222233314a36 to your computer and use it in GitHub Desktop.
Multiplicación
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
/*Multiplicacion*/ | |
var multiplicar = new Function("numOne", "numTwo", "return numOne * numTwo"); | |
var obj = { | |
'chicas': 19, | |
'hombres': 20, | |
'niñas': 16, | |
'niños': 18 | |
}; | |
var resultado = multiplicar(2, 8); | |
var edad = 20; | |
if(edad < 25) { | |
edad = multiplicar(edad, obj.chicas); | |
} | |
else if( edad >= 18) { | |
edad = multiplicar(obj.niñas, obj.niños); | |
} | |
else { | |
return console.log("Finish Multiplicacion"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment