Which keyword is used to declare a variable in JavaScript?
JavaScript Fundamentals Quiz

Quiz
•
Education
•
12th Grade
•
Medium
Hans Daduya
Used 3+ times
FREE Resource
32 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a.var
b.let
c.const
d.All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will typeof true return?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a comment in JavaScript?
a.<-- This is a comment -->
b.#This is a comment
c.//This is a comment
d.'This is a comment'
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare an array in JavaScript?
a.let arr={};
b.let arr=[];
c.let arr=();
d.let arr=<>;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a JavaScript data type?
a.undefined
b.string
c.integer
d.number
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in an array in JavaScript?
a.0
b.1
c.-1
d.Depends on the array
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a constant variable in JavaScript?
a.var
b.const
c.let
d.static
Create a free account and access millions of resources
Similar Resources on Quizizz
30 questions
UTS PWPB 2019

Quiz
•
1st - 12th Grade
30 questions
pengajian am

Quiz
•
University
30 questions
PEYGAMBERİMİZ HZ.MUHAMMED'İN HAYATI-2

Quiz
•
7th - 12th Grade
32 questions
Poniendo a prueba la mente x2

Quiz
•
University
28 questions
OOPS Live Quiz

Quiz
•
University
32 questions
Giros de figuras

Quiz
•
University
30 questions
Touchdesigner for Beginners

Quiz
•
University
33 questions
PBAU CAU II 2023

Quiz
•
12th Grade
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
Discover more resources for Education
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

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

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University