Which one of the following is the correct way to declare a variable called myAge, that contains a number data type?

June's First Quiz

Quiz
•
Other
•
1st - 5th Grade
•
Easy
Vincent Jonathan
Used 1+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
let myAge = 23;
let myAge = "23";
myAge = 23;
myAge(23);
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code
let name = "June";
console.log(name[1]);
J
u
undefined
1
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code
let name = "June";
console.log(name.length);
The code won't run
June
4
3
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the correct way to declare an array variable?
let arr = (1, 2, 3);
let arr[1, 2, 3];
let arr = [1, 2, 3];
arr = [1, 2, 3];
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does .push() do in JavaScript?
Inserts an element to the end of an array
Inserts an element to the beginning of an array
Removes the first element from an array
Removes the last element from an array
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does .unshift() do in JavaScript?
Inserts an element to the end of an array
Inserts an element to the beginning of an array
Removes the first element from an array
Removes the last element from an array
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does .pop() do in JavaScript?
Inserts an element to the end of an array
Inserts an element to the beginning of an array
Removes the first element from an array
Removes the last element from an array
Create a free account and access millions of resources
Similar Resources on Quizizz
13 questions
Elements of Dance Quiz

Quiz
•
3rd - 7th Grade
10 questions
JavaScript

Quiz
•
1st Grade
15 questions
2nd grade Eureka math module 6 mid-module assessment

Quiz
•
2nd Grade
10 questions
Personal Hygiene

Quiz
•
3rd - 5th Grade
10 questions
Repeated addition Arrays

Quiz
•
1st - 12th Grade
15 questions
Boboiboy Galaxy season 1

Quiz
•
KG - Professional Dev...
16 questions
5th Grade C3

Quiz
•
5th Grade
10 questions
nebula

Quiz
•
5th - 7th Grade
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 Other
15 questions
Character Analysis

Quiz
•
4th Grade
10 questions
American Flag

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

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

Quiz
•
5th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
14 questions
IREAD-3 Practice Test

Quiz
•
3rd Grade
15 questions
Multiplication Facts

Quiz
•
4th Grade