JavaScript
Basics

0: Introduction
1: Literals, identifiers and variables
2: Comments
3: The difference between let, const and var
4: Types
5: Operators and expressions
6: Let's start with arithmetic operators
7: ▶︎ The assignment operator
8: Operators precedence
9: Strings
10: Numbers
11: Semicolons, white space and sensitivity

[← back to the Valley]

Basics: The assignment operator

You use the assignment operator = to assign a value to a variable:

let count = 2
const age = 23
◀︎ Let's start with arithmetic operators
▶︎ Operators precedence

Lessons in this unit:

0: Introduction
1: Literals, identifiers and variables
2: Comments
3: The difference between let, const and var
4: Types
5: Operators and expressions
6: Let's start with arithmetic operators
7: ▶︎ The assignment operator
8: Operators precedence
9: Strings
10: Numbers
11: Semicolons, white space and sensitivity

Join my AI Workshop!

The Web Development BOOTCAMP cohort starts in February 2026