Choose the correct ways to define an array?
Arrays and Objects

Quiz
•
Professional Development
•
Professional Development
•
Hard
Daniel Adesoji
FREE Resource
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
const newArr = [ ]
const newArr = ( )
const newArr = new Array()
const newArr = { }
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given this array:
const newArray = [1, 2, 3, 4, 5]
What statement would return the value 3 from the array?
newArray[1]
newArray[2]
newArray[3]
newArray[4]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to add elements to the end of an array?
push
add
insert
pop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bisi wants to loop over all the elements in her array named students, what property of the array can she use to set a condition and end the loop?
students.size
students.length
students.name
students.lastIndex
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which array method is used to create a new array with the results of calling a provided function on every element?
filter
reduce
map
forEach
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nkem wants to change 3 to 30 in this array:
const ages = [10, 20, 3, 40, 50]
What statement should he use?
ages[1] = 30
ages[2] = 30
ages[3] = 30
ages[4] = 30
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following is/are the correct way(s) to define an object?
const person = { }
const person = new Object()
const person = Object.create(null)
const person = [ ]
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
Procurement and terms related_Week1_T3

Quiz
•
Professional Development
15 questions
GraphQL

Quiz
•
Professional Development
12 questions
Mach Grinder sem 4 mod 8 CNC feed back tool path and Tech terms

Quiz
•
Professional Development
15 questions
EAL unit 4 revision 4

Quiz
•
Professional Development
9 questions
PreTrainingJavaScript

Quiz
•
Professional Development
8 questions
Coaching Assessment Questions

Quiz
•
Professional Development
6 questions
Continuous Professional Development(CPD)

Quiz
•
Professional Development
15 questions
Javascript basics

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade