Assessment wanted for Object basics skill test by Dinesh

Hi there :wave:,
I have recently finished Object basics skill tests. Please review my tasks and feel free to share any advice on how to improve. Here are the Code pen and Task links,
Object Basics 1 * Task link
Object Basics 2 * Task link
Object Basics 3 * Task link
Object Basics 4 * Task link

Thank you in Advance,
Dinesh

Hi again

Nice code!
Here are my comments:

  • Task 1: You don’t need bracket notation for the color. cat.color works, too.
  • Task 2: I recommend rewriting the albums as an array of object. Something like this:
    albums : [
      {
         name : 'Hybrid Theory',
         released : 2004
      },
      ...
    ]
    
  • Task 3: Everything is correct.
  • Task 4: Everything is correct.
1 Like

Corrections are made sir. Thank you.

1 Like

Great improvement! This is now correct.

Using an array of object is a great way to work with data. It’s flexible and can be extended.