Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 1x 1x 1x 1x 1x 1x | // Title, Director, Genre, Release year, Rating // `${this.movie}, a ${this.genre} film directed by ${this.director} was released in ${this.releaseYear}. It received a rating of ${this.rating}.` /** * Represents a movie * @constructor */ export default class Movie{ constructor({title, director, genre, releaseYear, rating}){ this.title = title; this.director = director; this.genre = genre; this.releaseYear = releaseYear; this.rating = rating; } /** * Method to get movie overview * returns string - a sentence overview of the movie */ getOverview(){ return `${this.title}, a ${this.genre} film directed by ${this.director} was released in ${this.releaseYear}. It received a rating of ${this.rating}.`; } } |