-
Integer:
- Example: 100;
-
Negative Integer:
- Example: -100;
-
Float:
- Example: 10.52;
-
Negative Float:
- Example: -10.52;
-
Hexadecimal:
- Example: 0xfff;
-
Exponential:
- Example: 256e-5;
-
Octal:
- Example: 030;
-
Binary:
- Example: 0b0010001;
-
String Literal:
- Example: 'Hello World';
-
String literal assigned to a variable:
- Example: const str1 = 'Hello World';
-
String Object:
- Example: let str = new String();
- str = 'Hello World";
- Boolean Variables:
- Example: let YES = true;
- Example: let NO = false;
REFERENCES: https://www.tutorialsteacher.com/javascript/javascript-data-types
-
Inteiro:
- Exemplo: 100;
-
Inteiro Negativo:
- Exemplo: -100;
-
Float:
- Exemplo: 10.52;
-
Float Negativo:
- Exemplo: -10.52;
-
Hexadecimal:
- Exemplo: 0xfff;
-
Exponential:
- Exemplo: 256e-5;
-
Octal:
- Exemplo: 030;
-
Binário:
- Exemplo: 0b0010001;
-
String Literal:
- Exemplo: 'Hello World';
-
String literal atribuida a uma variável:
- Exemplo: const str1 = 'Hello World';
-
String Object:
- Exemplo: let str = new String();
- str = 'Hello World";
- Boolean Variáveis:
- Exemplo: let SIM = true;
- Exemplo: let NAO = false;
REFERÊNCIAS: https://www.tutorialsteacher.com/javascript/javascript-data-types
JavaScript | Node.js | VSCode |