Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Variables in JavaScript | Section
JavaScript Essentials for Backend

bookVariables in JavaScript

Свайпніть щоб показати меню

Variables are used to store data so it can be reused later in your code.

In JavaScript, variables are created using let or const.

let age = 25;
const name = "John";

The difference between them is important.

A variable created with let can be reassigned:

let count = 1;
count = 2;

A variable created with const cannot be reassigned:

const price = 100;
price = 200; // error

Use const by default, and use let only when you know the value will change.

Variables allow you to store values, update them, and use them in calculations or logic.

question mark

What will happen when this code runs?

Виберіть правильну відповідь

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

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 4

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

Секція 1. Розділ 4
some-alt