Explore BrainMass
Share

Java Script program: Song, Publishing Year

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Create a JavaScript program that declares and prints an array that includes at least 20 of your favorite songs. For each song, determine the best means for storing the year it was published. Using JavaScript, print each song's name along with the year it was published. The print logic must use a loop. The song data really do not matter; the programming does.

© BrainMass Inc. brainmass.com October 25, 2018, 8:20 am ad1c9bdddf
https://brainmass.com/computer-science/java/java-script-program-song-publishing-year-536802

Solution Preview

You can load attached 536802.html in any browser where you have Javascript enabled.

Attached Javascript solution is one of the many ways in which the goal can be achieved. It uses an array of arrays for storing the songs and the corresponding years when the respective songs were published. Each element of the songs array is an array of two elements with first element being the song name and second element being the year it was published in.

Please edit and populate the songs array with as many entries as you want. Solution has few sample entries for demonstrating as to how the songs information should be stored.

Instead of using an array of arrays, we could ...

Solution Summary

Solution uses an array of arrays for storing the songs and the corresponding years when the respective songs were published, but it also discusses two more approaches to store songs data.

$2.19
See Also This Related BrainMass Solution

Apple, Inc: Analyze current liabilities in most recent annual report

Can you please help with the following questions:

What were the company's total current liabilities at the end of its 2 most recent annual reporting periods?
What were the company's two largest current liabilities at the end of 2 its most recent annual reporting periods?
What were the company's total liabilities at the end of its 2 most recent annual reporting periods?

Use the company's most recent annual report.

View Full Posting Details