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

bookVariables

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

Variables are used to store data in your program.

Instead of repeating values everywhere, you save them in a variable and reuse them when needed.

In JavaScript, you will mostly use two keywords:

  • const: for values that should not change;
  • let: for values that can change.

Example:

1234567
const name = "Alex"; let count = 0; count = count + 1; console.log(name); console.log(count);
copy

Here, name stays the same, while count can be updated.

Using the right type of variable helps you write clearer and more predictable code.

question mark

Which keyword should you use for a value that will change?

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

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

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

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

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

Запитати АІ

expand

Запитати АІ

ChatGPT

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

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