JavaScript

JavaScript

8th Grade

10 Qs

quiz-placeholder

Similar activities

C++ brainstorming

C++ brainstorming

6th - 8th Grade

15 Qs

2D Arrays in C++

2D Arrays in C++

6th - 9th Grade

10 Qs

Third Day Quiz

Third Day Quiz

8th - 9th Grade

15 Qs

Python L1 Quiz 4: Lists

Python L1 Quiz 4: Lists

1st - 12th Grade

10 Qs

PRE TEST PENCARIAN DATA

PRE TEST PENCARIAN DATA

8th Grade

10 Qs

Quiz 1 Fungsi VLOOKUP dan HLOOKUP

Quiz 1 Fungsi VLOOKUP dan HLOOKUP

8th Grade

10 Qs

Introduction of Data Structure

Introduction of Data Structure

1st - 10th Grade

10 Qs

Pencarian Data - Unit Analisis Data

Pencarian Data - Unit Analisis Data

8th Grade

10 Qs

JavaScript

JavaScript

Assessment

Quiz

Computers

8th Grade

Medium

Created by

swathi pugal

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an empty array in JavaScript?

let arr = new Array();

let arr = [ ];

let arr = ( );

let arr = null;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method do you use to add elements to the end of an array?

add()

push()

append()

concat()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you remove the last element from an array?

removeLast()

deleteLast()

pop()

splice()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

let fruits = ['apple', 'banana', 'orange'];

fruits.pop();

console.log(fruits.length);

0

1

2

3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method do you use to join all elements of an array into a single string?

join()

concat()

merge()

combine()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the first element in an array?

0

1

-1

10

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

let array = [1, 2, 3, 4, 5];

array.length = 0;

console.log(array)

[ ]

{ }

[1,2,3,4,5]

5

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?