Multiple choice general knowledge science & technology

JavaScript variables are declared using _________ keyword.

  1. var

  2. identifier

  3. variable

  4. container

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The 'var' keyword is used to declare variables in JavaScript. While modern JavaScript also supports 'let' and 'const' for variable declarations, 'var' was the original keyword and remains in use for legacy compatibility.