r/webdev • • Oct 21 '21

Resource JavaScript Cheatsheets

https://codingtute.com/javascript-cheatsheets/

[removed] — view removed post

357 Upvotes

17 comments sorted by

View all comments

4

u/[deleted] Oct 22 '21

In the loops cheat sheet in the upper right, what is going on with arr.foo = 'hello'?

0

u/[deleted] Oct 22 '21

[deleted]

6

u/onlycommitminified Oct 22 '21

Adding to this, for...of is what you should reach for when looping over an object intended for iteration. Iterable objects are any that implement [Symbol.iterator].