4.
Which of the following is a valid way to declare and initialize an array in JavaScript?
const array = [1, 2, 3];
let array = [1, 2, 3];
var array = [1, 2, 3];
array = [1, 2, 3];
Correct: A, B, C
All of the options (A1, A2, A3) are valid ways to declare and initialize an array in JavaScript. The "const", "let", and "var" keywords are used to define variables, and they can all be used to declare and initialize an array. The option A4 is invalid because it does not include any variable declaration.