
JavaScript Multiple-Choice Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Neil Christian Capanzana
FREE Resource
60 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in JavaScript?
let x = 10;
var x = 10;
const x = 10;
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol is used for single-line comments in JavaScript?
/* comment */
// comment
# comment
-- comment
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will typeof null return?
"null"
"undefined"
"object"
"string"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to print something in the console?
print()
log()
console.log()
write()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of "5" + 3 in JavaScript?
8
53
35
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a constant variable?
var
let
const
define
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write an IF statement in JavaScript?
if x = 5 then {}
if (x == 5) {}
if x == 5 {}
if x === 5 then {}
Create a free account and access millions of resources
Similar Resources on Wayground
60 questions
Quiz Teknologi Informasi

Quiz
•
12th Grade
60 questions
Game Design Final Review

Quiz
•
9th - 12th Grade
57 questions
M9 Hyper-V Failover Clustering Module Quiz

Quiz
•
12th Grade
59 questions
Python CH1-3 Review

Quiz
•
8th Grade - Professio...
63 questions
K12 - Giữa HK II - Cánh diều ICT

Quiz
•
12th Grade
60 questions
ADVANCE COMPUTER FUNDAMENTALS AND PROGRAMMING

Quiz
•
12th Grade
60 questions
HTML & CSS Practice Test 1

Quiz
•
12th Grade
60 questions
Software and Networking Quiz

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade