Conteúdo do Curso
Introduction to JavaScript (staging)
Introduction to JavaScript (staging)
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 theundefined
).
let number = null; console.log(number);
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.
Tudo estava claro?
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 theundefined
).
let number = null; console.log(number);
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.
Tudo estava claro?
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 theundefined
).
let number = null; console.log(number);
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.
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 theundefined
).
let number = null; console.log(number);
Tarefa
Declare a variable selectColor
and assign the value of null
to the variable and display the value of the variable.