Earlier quoted context omitted.
So it's clickbait?
The article is not clickbait but the takeaway is easily misinterpreted. Instead of "JavaScript is such a weird and confusing language" it should be "a lot of people are using JavaScript without understanding the method signatures of commonly using methods".
I would never have guessed that it was passing the index as a second parameter, I would have expected a compiler error.