Ah yes, academic literature—where JavaScript and Java are basically the same thing. Nothing says "I've thoroughly researched programming" like casually dropping "(or Java)" as if they're interchangeable aliases. That's like saying "I'll drive my Ferrari (or bicycle)" to work today.
This is the same energy as textbooks claiming HTML is a programming language or that "the hacker known as 4chan" is a person. No wonder Stack Overflow exists—it's to recover from the brain damage caused by reading these educational masterpieces.