Conversation
Edited 8 months ago
complaining about javascript
Show content

ugh writing loops in javascript is the worst because it’s like, alright which one do I need to use this time? is it going to be for ... of var.entries()? is it going to be for ... in var? is it var.forEach()? is it for ... of var? do I have to do a C-style for (let i; ...; i++)? who knows! let’s try all of them until one of them works! every single time!

2
0
4
complaining about javascript
Show content
@kasdeya I memorized the first two as "elements of a collection" and "slots in an object" for the difference.

forEach is lambda-oriented so that one isn't confusing (it's a method exclusively present on Array classes, providing the elements of the collection object).
0
0
0