Vidyalelo
Data Structure · Q45

Arrays in Data Structures

Programming · Data Structure · question 45

Q45

Which of the following is a correct way to declare a constant array in JavaScript?

A.
const array = [1, 2, 3];
Answer
B.
constant array = [1, 2, 3];
C.
array = constant [1, 2, 3];
D.
array.constant = [1, 2, 3];

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board