JavaScript Exercise Quiz

JavaScript Exercise Quiz

9th - 12th Grade

85 Qs

quiz-placeholder

Similar activities

First Quarter Summative Test - October 23, 2023

First Quarter Summative Test - October 23, 2023

11th Grade

80 Qs

TKJ_

TKJ_

1st - 10th Grade

80 Qs

Unit 1 Troubleshooting Methodology and Hardware Basics

Unit 1 Troubleshooting Methodology and Hardware Basics

9th - 12th Grade

80 Qs

Unit 5 - Implementing Algorithms Review

Unit 5 - Implementing Algorithms Review

9th - 12th Grade

86 Qs

Latihan Soal Asesmen Sumatif Kelas Akhir Informatika

Latihan Soal Asesmen Sumatif Kelas Akhir Informatika

9th Grade

80 Qs

Computer Science - Baseline Year 10

Computer Science - Baseline Year 10

10th Grade

80 Qs

TECH Troubleshooting Theory

TECH Troubleshooting Theory

9th - 12th Grade

88 Qs

User interface, Input and output devices

User interface, Input and output devices

8th - 10th Grade

80 Qs

JavaScript Exercise Quiz

JavaScript Exercise Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

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?