It shows that the author is not willing to invest a few minutes to fact-check this particular assertion that they're putting in the article. After something like this, one cannot stop wondering how many more assertions in this article are false.
You spotted this error because you know the difference between Java and Javascript. But what about the stuff that you don't know? How do you spot those errors?