DEV Community

Discussion on: How to iterate over objects using array methods

Collapse
 
kenotron profile image
Kenneth Chau

sampleObject[word3] should be sampleObject['word3'], eh?

Collapse
 
stu profile image
Stu Finn

You're right! Ah, thanks for catching that - fixed now. Cheers