Welcome, lukaszkukla.
Neither of what you have provided should pass the tests.
-
You are not doing what was taught in previous lessons about this topic:
How do a function parameters access the object
Need HELP in how to access an object property!
Why would you ever use dot notation over bracket notation? -
Why are you adding an object
myObj
?
Click this link, only if you want to see the solution: freeCodeCamp Challenge Guide: Testing Objects for Properties