Variable

noun

say it: “VAIR-ee-uh-bul” /ˈvɛəriəbəl/

A name that holds a value so your program can use it later, like a labeled box. In JavaScript you create one with let or const.

What is Variable in JavaScript?

Variable — A name that holds a value, like a labelled box.

let score = 10;
score = score + 5;

In a sentence

  • “I stored the drink price in a variable called lattePrice and used it on every receipt line.”

Level: Novice · More JavaScript terms at this level

Updated

In other subjects