What keyword is used to declare a variable in JavaScript?

JavaScript Basic 1

Quiz
•
Computers
•
8th Grade
•
Medium
Lan Le
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
let
function
name
variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in JavaScript?
functionName(parameters) { // code here }
functionName(parameters) // function body
function functionName(parameters) { // function body }
functionName(parameters) { // function body }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used for creating conditional statements in JavaScript?
switch
loop
function
if
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the elements of an array in JavaScript?
arr[index]
arr.index
arr{index}
arr[element]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In JavaScript, what data type is used to store multiple values in a single variable?
boolean
number
array
string
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create an object in JavaScript?
obj = [key: value];
variable obj = new Object();
createObject();
let obj = { key: value };
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression 5 === '5' in JavaScript?
false
undefined
5
true
Create a free account and access millions of resources
Similar Resources on Quizizz
13 questions
Python Basics (Y9)

Quiz
•
8th - 10th Grade
10 questions
AppLab

Quiz
•
6th - 8th Grade
8 questions
JS Talks, Quiz #4

Quiz
•
1st - 12th Grade
10 questions
Webdev Backend Level 2

Quiz
•
5th - 8th Grade
10 questions
Mini Quiz

Quiz
•
6th - 8th Grade
10 questions
Coding: Conditionals

Quiz
•
6th - 8th Grade
10 questions
8.CT.a.1 - Enemies

Quiz
•
8th Grade
10 questions
DGT Vocab

Quiz
•
7th - 8th 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 Computers
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

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

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons

Quiz
•
8th Grade