Exercise on the Reflect API
In this exercise, we will use various methods of the Reflect API to create and alter objects.
Exercise 1:
Create a Movie
class, and initialize the title
(String
) and movieLength
(Number
) properties in the constructor. Create a toString
method that prints the movie out using the following format:
${this.title} (${this.movieLength} minutes)
Access this course and 1400+ top-rated courses and projects.