JavaScript Exercise Quiz

JavaScript Exercise Quiz

9th - 12th Grade

85 Qs

quiz-placeholder

Similar activities

Acronym Final Exam Review

Acronym Final Exam Review

10th Grade

80 Qs

CS Edexcel Topic 1 Computational Thinking EVERYTHING!!

CS Edexcel Topic 1 Computational Thinking EVERYTHING!!

9th - 10th Grade

90 Qs

YEAR 9

YEAR 9

9th Grade

81 Qs

Unit 4: Personal Computer Hardware(Vocabulary)

Unit 4: Personal Computer Hardware(Vocabulary)

9th - 12th Grade

88 Qs

EDX python 06

EDX python 06

11th Grade

80 Qs

Code.org Variables and Conditionals

Code.org Variables and Conditionals

9th - 12th Grade

88 Qs

Variables, Conditionals, & Functions Assessment

Variables, Conditionals, & Functions Assessment

9th - 12th Grade

88 Qs

2.2 Programming Alt

2.2 Programming Alt

10th Grade

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