My code forJavaScript Syntax: Classes is not working

I can’t get my code working. I even looked at Codecademy’s video, and I still wasn’t able to solve my problem.

Here’s the link to my code: https://www.codecademy.com/journeys/full-stack-engineer/paths/fscj-22-front-end-development/tracks/fscj-22-javascript-syntax-part-iii/modules/wdcp-22-learn-javascript-syntax-classes-8d95f6d1-ff64-43c3-8ff7-cdc933e16fde/projects/build-a-library

We can only see our own code, and I’ve got more than 150 lines. Might it be possible for you to break down the problem and let us tackle one piece at a time?

I keep getting this error:

/home/ccuser/workspace/learn-javascript-classes-build-a-library/app.js:66
class Movie extends Media {
^^^^^
SyntaxError: Unexpected identifier

Here’s my code:

class Media {
constructor(title) {
this._title = title;
this._isCheckedOut = false;
this._ratings = ;
}

get title() {
return this._title;
}

get isCheckedOut() {
return this._isCheckedOut;
}

get ratings() {
return this._ratings;
}

set isCheckedOut(value) {
this._isCheckedOut = value;

}
toggleCheckOutStatus() {
this.isCheckedOut = !this.isCheckedOut;
}

getAverageRating() {
let ratingsSum = this.ratings.reduce((accumulator, rating) => accumulator + rating);
return ratingsSum / this.ratings.length;
}

addRating(value) {
this.ratings.push(value);
}

};

class Book extends Media {
constructor(title, author, pages) {
super(title);

this._author = author;
this._pages = pages;

}

get pages() {
  return this._pages;
}

get author() {
  return this.author;
}

class Movie extends Media {
constructor(director, title, runTime) {
super(title);
this._director = director;
this._runTime = runTime;
}
get director() {
return this._director;
}

get runTime() {
  return this._runTime;
}

}

const historyOfEverything = new Book(‘Bill Bryson’, ‘A Short History of Nearly Everything’, 544);

historyOfEverything.toggleCheckoutStatus();

console.log(historyOfEverything.isCheckedOut);

historyOfEverything.addRating(4);
historyOfEverything.addRating(5);
historyOfEverything.addRating(5);

console.log(historyOfEverything.getAverageRating());

const speed = new Movie(‘Jan de Bout’, ‘speed’, 116);
speed.toggleCheckOutStatus();

console.log(speed.isCheckedOut);
speed.addRating(1);
speed.addRating(1);
speed.addRating(5);
console.log(speed.getAverageRating())