When you want to store multiple values in a single variable, you should use a(n) _________.

  • "array"
  • "object"
  • "string"
  • "function"
To store multiple values in a single variable in JavaScript, you should use an array. An array is a data structure that can hold multiple values of different data types. It is created using square brackets, like this: var myArray = [value1, value2, value3];. Arrays are versatile and commonly used for tasks like storing lists of items or organizing data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *