WeCodeAcademy

Working with Objects

Loop over an object with Object.keys, Object.values and Object.entries. Objects can also hold functions called methods.

Examplejavascript
Open in editor »
Quick check

What does `Object.keys(obj)` return?

Your turn: write the code

Loop over the entries of scores and print each one as key=value, for example a=1.

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.