JavaScript Exercise Quiz

JavaScript Exercise Quiz

9th - 12th Grade

85 Qs

quiz-placeholder

Similar activities

CS 241 Practice Test Week 4

CS 241 Practice Test Week 4

9th Grade - University

86 Qs

G10 Review 1st quarter

G10 Review 1st quarter

10th Grade

83 Qs

Intro to Technology Softwares Quiz

Intro to Technology Softwares Quiz

9th - 12th Grade

85 Qs

Latso Informatika X Genap 2025

Latso Informatika X Genap 2025

10th Grade

80 Qs

First Quarter Summative Test - October 23, 2023

First Quarter Summative Test - October 23, 2023

11th Grade

80 Qs

Week 10 - Loops & String Formatters

Week 10 - Loops & String Formatters

9th - 12th Grade

82 Qs

Quiz su JavaScript

Quiz su JavaScript

12th Grade

90 Qs

Computer grade10

Computer grade10

10th Grade - University

80 Qs

JavaScript Exercise Quiz

JavaScript Exercise Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?