/JavaScript-Primitive-Data-Types

Studying about JavaScript Primitive Data Types

Primary LanguageJavaScript

JavaScript Primitive Data Types 📙

Studying about JavaScript Primitive Data Types :)

Type Number:

  • 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;

Type String:

  • 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";

Type Boolean:

  • Boolean Variables:
    • Example: let YES = true;
    • Example: let NO = false;

REFERENCES: https://www.tutorialsteacher.com/javascript/javascript-data-types

------------------------------------------

Tipos primitivos de dados no JavaScript 📙

Estudando sobre Tipos primitivos de dados no JavaScript :)

Tipo Número:

  • 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;

Tipo String:

  • 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";

Tipo Boolean:

  • Boolean Variáveis:
    • Exemplo: let SIM = true;
    • Exemplo: let NAO = false;

REFERÊNCIAS: https://www.tutorialsteacher.com/javascript/javascript-data-types

Technologies Used:

JavaScript Node.js VSCode