JavaScript Exercise Quiz

JavaScript Exercise Quiz

9th - 12th Grade

85 Qs

quiz-placeholder

Similar activities

Code.org Variables and Conditionals

Code.org Variables and Conditionals

9th - 12th Grade

88 Qs

Computer Science Variables Conditionals Functions

Computer Science Variables Conditionals Functions

9th - 12th Grade

88 Qs

Operating Systems

Operating Systems

9th - 10th Grade

80 Qs

GCSE ICT Revision Session

GCSE ICT Revision Session

10th - 11th Grade

87 Qs

AI

AI

9th Grade

90 Qs

Data Structures Full

Data Structures Full

11th Grade

90 Qs

IBCS: Computer Organization

IBCS: Computer Organization

11th Grade

83 Qs

GCSE Computer Science - Paper 2 (Algorithms & Programming)

GCSE Computer Science - Paper 2 (Algorithms & Programming)

12th Grade

89 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?