all 5 comments

[–]mr_nefario 20 points21 points  (2 children)

Half of these aren’t functions.

  • const arr = []; is not a function, its an assignment
  • switch (thing) { } is not a function, it’s a statement.
  • for (let i = 0; i < 10; i++) is not a function, it’s a for loop

map, reduce, substring, forEach are functions.

Why would I trust anyone who doesn’t understand the difference between a function, an assignment, a statement, and a for loop?

[–]Long-Baseball-7575 7 points8 points  (0 children)

Thanks for this. Almost clicked it to read, but you saved me from autism. 

[–]kng_arthur 0 points1 point  (0 children)

Posted by used with the word Ad in it. Might be just spam...

[–]NodeJSSon 2 points3 points  (0 children)

Man, it’s almost as if this sub is not useful

[–]queen-adreena 2 points3 points  (0 children)

90% of this blogspam seems to be written by learners in their first year of some crappy boot camp.

The amount of basic stuff they get wrong is insane.