Ram

Lesson 2 of 6

Variables & Types

Use const and let to store values.

Prefer const when a variable binding will not be reassigned and let when it needs to change.

JavaScript values include strings, numbers, booleans, objects, arrays, null and undefined.

Example

const name = "Asha";
let score = 10;
score += 5;
console.log(name, score);

Practice challenge

Create a const projectName and a let progress value.

Previous
Next