Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Null | Data Types and Variables
Introduction to JavaScript (staging)
course content

Conteúdo do Curso

Introduction to JavaScript (staging)

Introduction to JavaScript (staging)

1. Introduction
2. JavaScript syntax
3. Data Types and Variables

bookNull

What is Null

The data type null represents that there is no value. It is a primitive value in javascript.

To have a better understanding of null, we must know these two features about null:

  • null provides the non-existent value or empty value.
  • null has to be assigned to a variable as it is not assigned by default (unlike the undefined).
12
let number = null; console.log(number);
copy
Tarefa
test

Swipe to show code editor

Declare a variable selectColor and assign the value of null to the variable and display the value of the variable.

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 30
toggle bottom row

bookNull

What is Null

The data type null represents that there is no value. It is a primitive value in javascript.

To have a better understanding of null, we must know these two features about null:

  • null provides the non-existent value or empty value.
  • null has to be assigned to a variable as it is not assigned by default (unlike the undefined).
12
let number = null; console.log(number);
copy
Tarefa
test

Swipe to show code editor

Declare a variable selectColor and assign the value of null to the variable and display the value of the variable.

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 30
toggle bottom row

bookNull

What is Null

The data type null represents that there is no value. It is a primitive value in javascript.

To have a better understanding of null, we must know these two features about null:

  • null provides the non-existent value or empty value.
  • null has to be assigned to a variable as it is not assigned by default (unlike the undefined).
12
let number = null; console.log(number);
copy
Tarefa
test

Swipe to show code editor

Declare a variable selectColor and assign the value of null to the variable and display the value of the variable.

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

What is Null

The data type null represents that there is no value. It is a primitive value in javascript.

To have a better understanding of null, we must know these two features about null:

  • null provides the non-existent value or empty value.
  • null has to be assigned to a variable as it is not assigned by default (unlike the undefined).
12
let number = null; console.log(number);
copy
Tarefa
test

Swipe to show code editor

Declare a variable selectColor and assign the value of null to the variable and display the value of the variable.

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Seção 3. Capítulo 30
Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
We're sorry to hear that something went wrong. What happened?
some-alt