anasmos / hyf-javascript3

0 stars 0 forks source link

Feedback homework JS3 Week 1 #2

Open remarcmij opened 6 years ago

remarcmij commented 6 years ago

Hi Anas, here is my feedback on your homework.

As Kenan mentioned, your approach is minimalistic but basically correct. Nevertheless, there a few remarks I can make.

  1. Your repo is missing an .eslintrc.json file. Because of this ESLint is not checking your .js file.
  2. You have a typo in line 7: whriters -> writers. You may have been warned by a green underline from the spell checker. Because you are not adding any writers, this error did not crop up at runtime.
  3. The assignment asked to get the director's name by director.getName(). This hints that the director was supposed to be a StaffMember object, e.g.:
    const myMovie = new Movie('anything', new StaffMember('anyone', 'director', 1979));
  4. It would have been nice if you had added some code to test your getAverageRating() method.