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

Constant 1/3

What are Constants?

Constants are created just like the var and let. We use the const keyword for initializing constants, for example.

12
const NUMBER = 58; console.log(NUMBER);
copy

Variables declared with const are very much similar to the variables declared with the let keyword, but the only difference is that we cannot reassign values to the variables declared with the const keyword.

123
const PI = 3.141592653589793; PI = 3.14; // error console.log(PI);
copy

Завдання

Declare a variable by using the const keyword with the identifier FIXED and assign the value 10 to it also display the value on the console.

Завдання

Declare a variable by using the const keyword with the identifier FIXED and assign the value 10 to it also display the value on the console.

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

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

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

Constant 1/3

What are Constants?

Constants are created just like the var and let. We use the const keyword for initializing constants, for example.

12
const NUMBER = 58; console.log(NUMBER);
copy

Variables declared with const are very much similar to the variables declared with the let keyword, but the only difference is that we cannot reassign values to the variables declared with the const keyword.

123
const PI = 3.141592653589793; PI = 3.14; // error console.log(PI);
copy

Завдання

Declare a variable by using the const keyword with the identifier FIXED and assign the value 10 to it also display the value on the console.

Завдання

Declare a variable by using the const keyword with the identifier FIXED and assign the value 10 to it also display the value on the console.

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

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

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

Constant 1/3

What are Constants?

Constants are created just like the var and let. We use the const keyword for initializing constants, for example.

12
const NUMBER = 58; console.log(NUMBER);
copy

Variables declared with const are very much similar to the variables declared with the let keyword, but the only difference is that we cannot reassign values to the variables declared with the const keyword.

123
const PI = 3.141592653589793; PI = 3.14; // error console.log(PI);
copy

Завдання

Declare a variable by using the const keyword with the identifier FIXED and assign the value 10 to it also display the value on the console.

Завдання

Declare a variable by using the const keyword with the identifier FIXED and assign the value 10 to it also display the value on the console.

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

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

What are Constants?

Constants are created just like the var and let. We use the const keyword for initializing constants, for example.

12
const NUMBER = 58; console.log(NUMBER);
copy

Variables declared with const are very much similar to the variables declared with the let keyword, but the only difference is that we cannot reassign values to the variables declared with the const keyword.

123
const PI = 3.141592653589793; PI = 3.14; // error console.log(PI);
copy

Завдання

Declare a variable by using the const keyword with the identifier FIXED and assign the value 10 to it also display the value on the console.

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