JavaScript Exercise Quiz

JavaScript Exercise Quiz

9th - 12th Grade

85 Qs

quiz-placeholder

Similar activities

IoT: база емес, для себя чисто

IoT: база емес, для себя чисто

11th Grade

81 Qs

Lat PAS XI Inf 2

Lat PAS XI Inf 2

11th Grade

80 Qs

USBN C2

USBN C2

10th - 12th Grade

85 Qs

สอบกลางภาคการออกแบบฯ ม.๔/๒ ปี ๒๕๖๒

สอบกลางภาคการออกแบบฯ ม.๔/๒ ปี ๒๕๖๒

10th Grade

80 Qs

Frm3 Yr Revision Quiz

Frm3 Yr Revision Quiz

9th Grade

86 Qs

Computer Network Systems

Computer Network Systems

10th Grade

89 Qs

Premiere Pro

Premiere Pro

8th - 10th Grade

80 Qs

第三章 系统单元

第三章 系统单元

12th Grade

82 Qs

JavaScript Exercise Quiz

JavaScript Exercise Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

WaiLin Htet

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?