Computer scienceBackendNode.jsApplication DevelopmentArchitecture of Node.js applications

MVC with Node.js

Album model

Report a typo

Your company is creating a music-streaming application and needs a model for albums. Create the album model as a class similar to the examples in theory. The model should have title, artist, and releaseYear properties and a playSong method. The method should output this message when called and passed a song name: Now playing "[songName]" by [artist] from [title]([releaseYear]) album.

Do not create an instance or call the method.

Sample Input 1:

Sample Output 1:

Now playing "Back On 74" by Jungle from Volcano(2023) album
Write a program in JavaScript
// write your code here

Create a free account to access the full topic