p.s. along my learning process I have been using codepen online editor but when I started to take steps forward during learning JS I decided to create github repositories for MDN tests and assessments even if I yet know less how to use github properly. so my question is that if it is a good idea creating github repositories for assessments requests or I just should continue to use codepen?
For task 1 the idea is to call the object’s function like this cat.greeting();.
Task 2 looks much cleaner now. I recommend using always dot notation except when the property name is dynamic.
This is an example where you need to use bracket notation: