Skip to content

Assign

Like most programming languages, use = to assign a value to a variable.

nvs

We can also use +=, -=, *=, /= to simplify the assignment operation.

nvs

When you first declare a variable, you cannot use let to declare the same variable again, the compiler will report an error.

nvs