1. Which statement correctly declares an array in JavaScript?
Skill #2 Array

Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
Nixon López
Used 3+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
var array = [1, 2, 3];
var array = {1, 2, 3};
var array = (1, 2, 3);
var array = <1, 2, 3>;
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you access the third element in an array named numbers?
numbers[2];
numbers[3];
numbers(3);
numbers{2};
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following initializes an empty array?
var array = [];
var array = {};
var array = ();
var array = <>;
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How can you iterate over an array named items using a for loop?
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which method adds one or more elements to the end of an array?
array.push(element);
array.pop();
array.shift();
array.unshift(element);
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
"apple"
"banana"
"mango"
undefined
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code return?
0
1
2
-1
Create a free account and access millions of resources
Similar Resources on Quizizz
8 questions
Javascript Intro Parte II

Quiz
•
12th Grade
10 questions
Quiz aula 8

Quiz
•
9th - 12th Grade
15 questions
แข่งขันcodingม.ปลาย

Quiz
•
12th Grade - University
15 questions
HTML 5 2o. TEC

Quiz
•
12th Grade
7 questions
Understanding Arrays and Loops in JavaScript

Quiz
•
11th Grade - University
8 questions
Intro to JS: Functions, Scope & Objects

Quiz
•
11th Grade - University
15 questions
MakeCode Arcade Questions

Quiz
•
10th Grade - University
10 questions
Arrays in CQuiz

Quiz
•
1st Grade - 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 Information Technology (IT)
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

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

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University