Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Aptitude | JavaScript Course Quiz 3 | Question 3

  • Last Updated : 10 May, 2019

Given a collection of artists and lists of their songs, would you store the artist-song-list pairs in an Object or an Array?
(A) Object
(B) Array
(C) Function
(D) None of the above

Answer: (A)

Explanation: If you want to store a bunch of numbers or a list of objects of the same type, use an array. But here we have to store list of their strongs as per their name so we will use Object.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :