A

Admin • 802.91K Points
Coach

Q. Which of the following is a valid way to create a new array?

  • (A) let arr = [];
  • (B) let arr = {};
  • (C) let arr = ();
  • (D) let arr = <>;
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
Square brackets are used to declare arrays in JavaScript.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.