Explore programmers.im
javascript.programmers.im

javascript.programmers.im

Is JavaScript the same as Java?

The official MDN glossary says it should not be confused with the Java programming language. The two are significantly different in their syntax, semantics and use cases. [source]

This is a beginner-friendly, sourced guide to JavaScript, the third official web language on MDN’s “layer cake.” Official wording stays in the document it came from.

Ask the official desk Free downloads

A pair of hands typing on a laptop keyboard, with code on the screen and a mug beside the computer
Hands typing at a laptop. Free-Photos from Pixabay, 23 March 2015. CC0. The Commons file is described as “Computer programmer typing code.” The language on the screen is not identified. Photo: Free-Photos from Pixabay, 23 March 2015 · CC0 · Wikimedia Commons

An official desk

The official MDN glossary is blunt: JavaScript should not be confused with the Java programming language. This desk keeps that answer, and the other official wording around it, in the document it came from.

Java, or JavaScript?

The official MDN glossary article titled “JavaScript” says, with the words “should not” emphasised on the page: “JavaScript should not be confused with the Java programming language. Although “Java” and “JavaScript” are trademarks (or registered trademarks) of Oracle in the U.S. and other countries, the two programming languages are significantly different in their syntax, semantics, and use cases.” [source]

For a fuller side-by-side look at typing, where the code runs, and how it is compiled or interpreted, see the table on this page, or take the free fact sheet.

Free downloads

Three short fact sheets you can print. No checkout, no email, no registration. Each one is offered in A4 and US Letter, and each uses official wording with the source on the page.

The third official layer

MDN’s beginner course calls JavaScript “the third layer of the layer cake of standard web technologies,” after HTML and CSS. [source]

Colourful source code filling a computer monitor, slightly out of focus at the edges
Source code on a computer monitor. Markus Spiske, 14 February 2017. CC0. The Commons file is titled “Code on computer monitor.” The language on the screen is not identified. Photo: Markus Spiske, 14 February 2017 · CC0 · Wikimedia Commons

Read the official layer cake

Keep the lights on

Enjoyed the script?

No pop-ups. No intrusive advertising. Just interesting stuff. A little support helps the next programmers site get built.