Examveda

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

A. const array = [1, 2, 3];

B. constant array = [1, 2, 3];

C. array = constant [1, 2, 3];

D. array.constant = [1, 2, 3];

Answer: Option A


This Question Belongs to Data Structure >> Arrays In Data Structures

Join The Discussion

Related Questions on Arrays in Data Structures