How to get access to number 8 in the following array?
const arr = [[1, 2, 3], [[5, 6, 7, 8], 9]]
JavaScript
Quiz
•
Education
•
1st - 12th Grade
•
Hard
Богдан Левантович
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How to get access to number 8 in the following array?
const arr = [[1, 2, 3], [[5, 6, 7, 8], 9]]
arr[[[1,0,3]]]
arr[1][0][3]
arr[1,0,3]
arr[1[0[3]]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the result of this?
const a = 20;
a = 10;
console.log(a)
10
20
it would throw an error
undefined
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
function getSum(a, b) {
console.log(a + b);
}
const result = getSum(10, 20);
console.log(result);
30
undefined
0
10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does map function return?
undefined
number
string
array
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How to access property name on the object?
const country = {
name: 'Italy',
population: 59550000
};
country,name
country.name
country['name']
country{name}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the following comparison produce?
2 == "2"
true
false
undefined
error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Guess the result of this:
{foo: 'bar'} === {foo: 'bar'}
true
false
I haven't learned it yet!
undefined
10 questions
C#-1: Lektion 5
Quiz
•
8th Grade
10 questions
Competitive Programming
Quiz
•
1st Grade
11 questions
variable
Quiz
•
KG - 5th Grade
15 questions
PBO
Quiz
•
12th Grade
15 questions
PRUEBA FINAL 4TO A
Quiz
•
12th Grade
10 questions
History of Video Games 6
Quiz
•
12th Grade
10 questions
MUSIC. INSTRUMENTS
Quiz
•
2nd Grade
10 questions
Grade 3 - Technology vs. Information Technology
Quiz
•
3rd - 8th Grade
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
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
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
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