
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
85 questions
OCR H446 - 2.3 Algorithms - Algorithms and Programming 02

Quiz
•
12th Grade
88 questions
Unit 4: Variables, Conditionals, & Functions (APCSP '23-'24)

Quiz
•
9th - 12th Grade
90 questions
Belajar Tambahan - Dasar Program Keahlian TKJ

Quiz
•
9th - 12th Grade
80 questions
Quiz Basi di Java

Quiz
•
9th - 12th Grade
87 questions
GCSE ICT Revision Session

Quiz
•
10th - 11th Grade
83 questions
IBCS: Computer Organization

Quiz
•
11th Grade
89 questions
Grade 10 ICT. third term test

Quiz
•
12th Grade
81 questions
IGCSE ICT THEORY PART PRACTICE

Quiz
•
7th - 10th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
20 questions
Introduction to Desktop Computer Systems

Quiz
•
9th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Computer Hardware and Input/Output Devices

Interactive video
•
6th - 10th Grade