
JavaScript
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Medium
swathi pugal
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
ม.5/7 ส่วนประกอบ capcut
Quiz
•
8th Grade
10 questions
Operating System
Quiz
•
5th - 9th Grade
11 questions
Advanced Spreadsheet Functions Review
Quiz
•
8th Grade
13 questions
A words - GCSE Computer Science
Quiz
•
1st - 10th Grade
15 questions
Empowerment Technologies
Quiz
•
KG - 12th Grade
10 questions
Physical Security
Quiz
•
1st Grade - University
10 questions
Python list and tuple
Quiz
•
6th - 8th Grade
10 questions
Banana Tales Part I (1-40)
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
