Object-oriented JavaScript for beginners(Further exercises)

Hello. I have a couple of questions about the section Further exercises in Object-oriented JavaScript for beginners.

First, here is my codePen (This is my first time using an online editor and sharing my code through it. I apologize if something is wrong).

I have no problem with the code working (although if you see any errors, please indicate), but I can see differences from the code (link (code on GitHub) which is on the tutorial page).

Can I get an assessment of how much worse the code I have written? Why is it not worth writing this way and how to write correctly?
Thank you.

Hello @Ti_awer

you doing great

  1. there is many way to do the code of that one
  2. i see you added extra field like eye color height weight
  3. it would be good to add comment so it help you if you return to your code after while especially in real and big one
  4. make field at the beginning then the functions after that
  5. all of the above are just recommendation

hope that help and have a nice day :slight_smile:

1 Like