In this exercise, you will use object oriented programming concepts to extend a custom object in JavaScript.
MusicVideo
that extends Video
. Its constructor
should also take in an artist
argument.
MusicVideo
object and call the watch()
method on it.rockOut()
that uses console.log
to output a string like "You rocked out to La Bamba by Ritchie Valens!.
MusicVideo
objects.Video
or MusicVideo
object.