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
JavaScript Mastery from Zero to Hero - Prepare for Coding Interviews - Global Versus Local Scope in Functions with JavaS

Interactive video
•
University
8 questions
The Front-End Web Developer Bootcamp - HTML, CSS, JS, and React - Var in JavaScript

Interactive video
•
University
6 questions
Quick JavaScript Crash Course - Modern and Advanced JavaScript - Introduction-Variables And Scoping

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

Interactive video
•
University
8 questions
Modern JavaScript from the Beginning - Second Edition - Block Scope

Interactive video
•
University
8 questions
Modern Web Design with HTML5, CSS3, and JavaScript - JavaScript – Let and Const Variables

Interactive video
•
University
8 questions
Quick JavaScript Crash Course - Modern and Advanced JavaScript - Let Const Rather than Var

Interactive video
•
University
8 questions
Excel VBA Programming The Complete Guide - Constants

Interactive video
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade