-
-
Save DavidPeralvarez/731951c64008ac66031c840f9d38d2eb to your computer and use it in GitHub Desktop.
JavaScript - Numérico y NaN
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Curso de Javascript</title> | |
</head> | |
<body> | |
<script src="scripts.js"></script> | |
</body> | |
</html> |
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
/* Numérico y NaN */ | |
var a = 10.57, | |
b = 5; | |
// var resultado = a + b; | |
// var resultado = a - b; | |
// var resultado = a * b; | |
// var resultado = a / b; | |
// var resultado = a / 0; | |
// var resultado = -a / 0; | |
// var resultado = a / 'hola'; | |
// var resultado = a / 800; | |
var resultado = 10 + '1'; | |
console.log( resultado ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment