Open In App

Aptitude | JavaScript Course Quiz 3 | Question 3

Like Article
Like
Save
Share
Report

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


Last Updated : 10 May, 2019
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads