Build A Library Javascript

https://www.codecademy.com/courses/introduction-to-javascript/projects/build-a-library
Hi, I am trying to this exercise, step 19, but when I log the result, it comes up as [Function:getAverageRating] Can anyone please help?
Here is 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(newisCheckedOut) {
    this._isCheckedOut = newisCheckedOut
  }
  toggleCheckOutStatus() {
  this._isCheckedOut = !this._isCheckedOut;
  }
  addRating(ratings){
    this._ratings.push(ratings);
  }
  getAverageRating() {
    let ratingsAverage = Math.round(this._ratings.reduce(function(a, b) {
      return a + b;
    }) / this._ratings.length);
    this._ratings = ratingsAverage;
  }
}
class Book extends Media {
  constructor(author, title, pages) {
    super(title)
    this._author = author
    this._pages = pages
  }
  get author() {
    return this._author
  }
   get pages() {
    return this._pages
  }
}
class Movie extends Media {
  constructor(director, title, runTime) {
    this._director = director
    super(title)
    this.runTime = runTime
  }
    get director() {
    return this._director
  }
    get author() {
    return this._author
  }
};
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)

here:

console.log(historyOfEverything.getAverageRating)

you don’t call the function? Calling functions requires parentheses.

Oh wait, nevermind. Thanks so much, @stetim94

This topic was automatically closed 18 hours after the last reply. New replies are no longer allowed.