-
Arrays in JavaScript are written within ____________.
-
- “”
- {}
- ()
- [].
- None of these
Correct Option: D
Arrays in JavaScript are written in square brackets. The elements of array are separated by commas. Index of array items starts from 0. E.g. var fruits= [“apple”, “orange”, “banana”, “pine-apple”]; objects in JavaScript are written inside curly brackets.