
JavaScript Exercise Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
WaiLin Htet
Used 1+ times
FREE Resource
85 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct syntax for referring to an external script called "app.js"?
<script href="app.js">
<script src="app.js">
<script ref="app.js">
<script link="app.js">
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you write "Hello World" in an alert box?
alertBox("Hello World");
msg("Hello World");
alert("Hello World");
message("Hello World");
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which operator is used to assign a value to a variable?
=
==
===
:=
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will typeof null return?
"null"
"object"
"undefined"
"string"
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you create a function in JavaScript?
function myFunction() {}
def myFunction() {}
function:myFunction() {}
myFunction() = function {}
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which method is used to add an element to the end of an array?
push()
pop()
shift()
unshift()
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you declare a variable in JavaScript?
var x;
variable x;
v x;
let = x;
Create a free account and access millions of resources
Similar Resources on Wayground
80 questions
Acronym Final Exam Review

Quiz
•
10th Grade
85 questions
Mega Quiz

Quiz
•
11th Grade - Professi...
87 questions
Syed: IGCSE Computer Science: Program Development lifecycle

Quiz
•
9th Grade
84 questions
Cambridge Technicals Unit 2 LO1

Quiz
•
5th - 12th Grade
86 questions
M1 R5 mix 100 question set 3

Quiz
•
12th Grade
84 questions
AICE Comp Sci Units 3-7

Quiz
•
10th Grade
84 questions
SEC+ Mod 3 Part 4

Quiz
•
12th Grade
84 questions
Network Security Quiz

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade