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

Зміст курсу

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

Завдання

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

Завдання

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

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 3. Розділ 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

Завдання

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

Завдання

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

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 3. Розділ 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

Завдання

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

Завдання

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

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

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

Завдання

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

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 3. Розділ 30
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt