What keyword is used to create a variable in JavaScript?
JavaScript Basics Quiz

Quiz
•
Computers
•
10th Grade
•
Medium
Lamia Saieed
Used 22+ times
FREE Resource
69 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
define
let
var
make
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which code correctly assigns the value 5 to the variable score?
score = let 5;
var score = 5;
set score = 5;
score <- 5;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which block allows a user to type input in a Design tab element?
label
dropdown
text input
button
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to declare a variable in JavaScript?
create variable x = 5;
int x = 5;
var x = 5;
x := 5;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to store a number or string in JavaScript?
define
function
var
input
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function of setText(id, text)?
Stores text in a variable
Gets text from the screen
Sets text of a UI element
Deletes a text input
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which event type is used to detect a button click in onEvent()?
hover
input
submit
click
Create a free account and access millions of resources
Similar Resources on Quizizz
65 questions
Review Materi PAS 1 TIK Gr6

Quiz
•
6th Grade - University
70 questions
Review for Fall Semester Exam - CTE

Quiz
•
8th Grade - University
65 questions
All About ICT

Quiz
•
3rd Grade - University
66 questions
OCR Computer Science Paper 2

Quiz
•
10th Grade
70 questions
Ôn tập cuối kì I - python

Quiz
•
10th Grade
66 questions
User interface 2

Quiz
•
10th Grade
66 questions
Weeks 1-6 Vocab

Quiz
•
9th - 12th Grade
70 questions
TIK KELAS X

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade