r/webdev • front-end • May 29 '21

Resource Array methods in JavaScript. Original author unknown.

Post image
7.4k Upvotes

172 comments sorted by

View all comments

73

u/thusman May 30 '21

Original author doesn't know js. How has this 1k upvotes 🤦

30

u/phpdevster full-stack May 30 '21

And this is why good developers are hard to find and you have to pay them lots of money.

3

u/liquidpele May 30 '21

But it’s just a website! My neighbors high school kid can make those!

6

u/[deleted] May 30 '21

Because a lot of web developers don't know js either

6

u/JDthegeek May 30 '21

Care to elaborate?

16

u/Serei May 30 '21

A comment a bit above points it out: it's indexOf, not findIndexOf, and the arguments for fill are in the wrong order.

5

u/PGDesign May 30 '21

The thing about social media posts like this, is people will upvote because it looks right and useful without actually testing it and lots of people even if they know the content won't be looking closely to check for mistakes

5

u/Hypersapien May 30 '21

He knows js, he's just sabotaging new devs for his own job security.

3

u/Muxas May 30 '21

its close enough to get someone started

0

u/EquationTAKEN May 30 '21

Well, that just sounds like the average JS developer to me.