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

Glissez pour afficher le menu

book
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
Tâche

Swipe to start coding

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

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 30
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

Awesome!

Completion rate improved to 2

book
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
Tâche

Swipe to start coding

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

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

close

Awesome!

Completion rate improved to 2

Glissez pour afficher le menu

some-alt