Create a rating property and set its value to 0.

Make sure to add this.rating = 0; to your code.