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

Null

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

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

Tarefa

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

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

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

Null

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

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

Tarefa

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

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

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

Null

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

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

Tarefa

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

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

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

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

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Seção 3. Capítulo 30
Mude 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