Arrays are so freaking handy! They are a great way to store data and they have some really amazing “array methods” like .forEach() and .map() (and...
For further actions, you may consider blocking this person and/or reporting abuse
How about:
So much cleaner! People usually just scratching the surface of what JS can actually do.
Beautiful! This one is also nice:
Object.keys holds a special place in my heart. You can also use Object.entries as well.
Don't forget Object.values ;)
sampleObject[word3] should be sampleObject['word3'], eh?
You're right! Ah, thanks for catching that - fixed now. Cheers
"New", but...
Onject.values
Object.entries
and while you have to know some about the enumerable properties of the object and its prototype-
for(let i in obj){ ... }
That's why there is
for-of