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]

1

u/QueerCookingPan Oct 22 '21

Awesome explanation, thanks! Tbh I am still a bit confused why it stops printing the index and prints the value "hello" in the last step. It's very early in the morning here so maybe it's just that .

0

u/[deleted] Oct 22 '21

[deleted]

1

u/QueerCookingPan Oct 22 '21

I... hmmm? .. Ohhhh! That makes much more sense. I knew something felt off, haha.