Skip to content

Commit 9275bd8

Browse files
committed
41. Number: Alguns cuidados
1 parent c7dff36 commit 9275bd8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
- [38. O básico de Var, Let e Const](#38-o-básico-de-var-let-e-const)
4848
- [39. Tipagem fraca](#39-tipagem-fraca)
4949
- [40. Tipos em JavaScript: Number](#40-tipos-em-javascript-number)
50+
- [41. Number: Alguns cuidados](#41-number-alguns-cuidados)
5051

5152
## Seção 1: Introdução Curso Desenvolvimento Web
5253

@@ -393,4 +394,10 @@ console.log(Number);
393394

394395
[Arquivo](fundamentos/numeros.js)
395396

397+
[Commit](https://github.com/Alexandresl/Web-Moderno-com-JavaScript/commit/1e4e228d1b65ad8713d28ab5faeb8a4840268934)
398+
399+
### 41. Number: Alguns cuidados
400+
401+
[Arquivo](fundamentos/numerosAlgunsCuidados.js)
402+
396403
[Commit]()

fundamentos/numerosAlgunsCuidados.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
console.log(7 / 0); // Infinity
2+
3+
console.log("10" / 2); // 5
4+
5+
console.log("Show!" * 2); // NaN
6+
7+
console.log(0.1 + 0.7); // 0.7999999999999999
8+
9+
console.log((10).toString()); // 10 - Sem o parênteses não funciona

0 commit comments

Comments
 (0)