Which keyword was introduced in ES6 for variable declaration?
Variables - var, let & const

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Quizizz Content
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
float
int
let
var
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the initial value of a variable declared with var but not assigned?
empty string
null
0
undefined
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a common use case for initializing a variable without a value?
To use in a conditional statement
To declare a function
To create a constant
To start a loop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character is not allowed at the start of a JavaScript variable name?
Number
Underscore
Dollar sign
Letter
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the recommended naming convention for multi-word variables in JavaScript?
lowercase
snake_case
PascalCase
camelCase
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in JavaScript?
name!
$name
_name
1name
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does let differ from var in terms of scope?
let is function-scoped
let is block-scoped
let is globally-scoped
let has no scope
Create a free account and access millions of resources
Similar Resources on Quizizz
8 questions
Block Scope With let & const

Interactive video
•
University
6 questions
HTML CSS and JavaScript for Beginners - A Web Design Course - ES6 JavaScript

Interactive video
•
University
6 questions
Learn JavaScript from Scratch JavaScript for Everyone - JavaScript Scope

Interactive video
•
University
8 questions
Frontend Web Development Bootcamp - Build a Twitter Clone - Variables in JavaScript

Interactive video
•
University
5 questions
Variables - var, let & const

Interactive video
•
University
11 questions
The Complete React Developer Course (with Hooks and Redux) - ES6 Aside: const and let

Interactive video
•
University
8 questions
Tips, Tricks, and Techniques for Node.js Development 2.1: Using const and arrow Functions

Interactive video
•
University
11 questions
Modern JavaScript from the Beginning - Second Edition - Variables and Constants

Interactive video
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade