In this exercise, you will use object oriented programming concepts to define and use a custom object in JavaScript.
Video
object. The function should take in
arguments of title
(a string), uploader
(a string, the person who uploaded it), and seconds
(a number, the duration), and
it should save them as properties of the object.Video
object called watch()
. When that method is called,
it should use console.log
to output a string like "You watched all 60 seconds of Otters Holding Hands!"Video
object and call the watch()
method on it.Video
object with different constructor arguments.Video
objects.watch
method accept amounts of seconds to watch for, and call it with different amounts of seconds.