Which of the following is not false?
Moringa JavaScript Arrays

Quiz
•
Education, Professional Development, Computers
•
5th Grade - Professional Development
•
Hard
Moringa School
Used 26+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
JavaScript arrays are resizable and can contain a mix of different data types.
JavaScript arrays are not associative arrays and are zero-indexed.
Methods used to create copies i.e spread-syntax, slice(), concat(), and Array.from() methods create shallow copies of the array.
JavaScript arrays are not objects but their own primitive types.
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How do you create an array in JavaScript?
const fruits = ['Apple', 'Banana'];
const fruits = new Array('Apple', 'Banana');
const fruits = 'Apple, Banana'.split(', ');
const fruits = [];
fruits[0]= 'Apple';
fruits[1] = 'Banana';
3.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
The ___ Array object property gives us the count of items in an Array.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following code will return `undefined` using the following array?
const fruits = ['Apple', 'Banana'];
fruits[-1];
fruits[fruits.length - 1];
fruits[1];
fruits[0];
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The ___ method is used to find the position (index) of the string "Banana" in the array;
const fruits = ['Apple', 'Banana'];
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following lines of code are used to check if an item exists. What is the result of the expression?
const fruits = ['Apple', 'Banana'];
fruits.includes('Banana') === fruits.indexOf('Banana') !== -1;
true
false
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly loops through the Array?
const fruits = ['Apple', 'Mango', 'Cherry'];
for (const fruit in fruits) {
console.log(fruit);
}
fruits.forEach(function(fruit, index, array) {
console.log(fruit);
});
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Fun with Numpy

Quiz
•
9th - 12th Grade
12 questions
JS quiz

Quiz
•
10th Grade
10 questions
Programming - Arrays

Quiz
•
2nd - 12th Grade
10 questions
AutoCad Practice Exam

Quiz
•
10th - 11th Grade
15 questions
PYTHON LIST

Quiz
•
9th Grade
10 questions
Metode Array dalam JavaScript XI RPL 2

Quiz
•
11th Grade
13 questions
Strings and Arrays

Quiz
•
Professional Development
15 questions
module3

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Education
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
20 questions
Final Exam Vocabulary

Quiz
•
6th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade