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

Contenido del 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

Tarea

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

Tarea

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

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 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

Tarea

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

Tarea

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

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 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

Tarea

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

Tarea

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

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo 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

Tarea

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

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 3. Capítulo 30
Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
We're sorry to hear that something went wrong. What happened?
some-alt