Back to Course

Video lesson player

Variables are containers for storing data values. In JavaScript, you can declare variables using var, let, or const. Each has different scope and reassignment rules.

Pro Tip

Use const by default, let when you need to reassign, and avoid var in modern JavaScript.