reading-notes

Class 6: JavaScript

What are variables in JavaScript?

Containers for storing information.

What does it mean to declare a variable?

After the declaration, the variable has an undefined value. Declare values by using let, const, var, or nothing (Note: Var and nothing are no longer used)

What is an “assignment” operator, and what does it do?

In JavaScript, the equal sign (=) is an “assignment” operator, not an “equal to” operator. Example: x = x + 5 means it assigns the value of “x + 5” to “x”.

What is information received from the user called?

Input

Read

Read and Demo

Watched