Search Header Logo

Review JavaScript

Authored by Wayground Content

Computers

11th Grade

Used 17+ times

Review JavaScript
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Defines the condition for the loop to run

1st Expression

2nd Expression

3rd Expression

2.

FILL IN THE BLANKS QUESTION

1 min • 2 pts

What is the correct way to declare a constant?
(a)   example=10;

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Determine the output of this program:

for (let index = 5; index < 8; index++) {

document.write([index] + "<br>");

}

5

6

7

4
5
6

6
7
8

erorr

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A JavaScript file has an extension name of

.jscp
.js
.css
.Jp

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The following "for" loop will execute 5 times.

for (let i = 0; i < 5; i++) {

console.log(i);

}

True

False

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the last number printed by the following loop?
for (let i = 2; i <= 10; i += 2) {

console.log(i);

}

6
10
8
12

7.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Complete the missing part of this JavaScript "for" loop so it correctly prints numbers from 1 to 5.
for ( (a)   ; i <= 5; i++) { console.log(i); }

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?