Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Undefined | 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

Undefined

What is Undefined

Undefined is also a data type in JavaScript just like the null. When a variable is created or declared without assigning any value to it, then the value of the variable will be set as undefined by default.

12
let age; console.log(age);
copy

Завдання

Declare a variable numberOfItems and assign the value of undefined to the variable and show the value of the variable.

Завдання

Declare a variable numberOfItems and assign the value of undefined to the variable and show the value of the variable.

So, undefined variables can also be declared using the undefined keyword.

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

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

Секція 3. Розділ 31
toggle bottom row

Undefined

What is Undefined

Undefined is also a data type in JavaScript just like the null. When a variable is created or declared without assigning any value to it, then the value of the variable will be set as undefined by default.

12
let age; console.log(age);
copy

Завдання

Declare a variable numberOfItems and assign the value of undefined to the variable and show the value of the variable.

Завдання

Declare a variable numberOfItems and assign the value of undefined to the variable and show the value of the variable.

So, undefined variables can also be declared using the undefined keyword.

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

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

Секція 3. Розділ 31
toggle bottom row

Undefined

What is Undefined

Undefined is also a data type in JavaScript just like the null. When a variable is created or declared without assigning any value to it, then the value of the variable will be set as undefined by default.

12
let age; console.log(age);
copy

Завдання

Declare a variable numberOfItems and assign the value of undefined to the variable and show the value of the variable.

Завдання

Declare a variable numberOfItems and assign the value of undefined to the variable and show the value of the variable.

So, undefined variables can also be declared using the undefined keyword.

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

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

What is Undefined

Undefined is also a data type in JavaScript just like the null. When a variable is created or declared without assigning any value to it, then the value of the variable will be set as undefined by default.

12
let age; console.log(age);
copy

Завдання

Declare a variable numberOfItems and assign the value of undefined to the variable and show the value of the variable.

So, undefined variables can also be declared using the undefined keyword.

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