An Interpreted Language

Some languages are interpreted, and some are compiled. JavaScript is an interpreted language. Your browser, most likely Netscape Navigator or Internet Explorer, acts as a translator between JavaScript and the native language that your computer uses. The process involves your browser parsing (interpreting) the JavaScript code and then creating an equivalent machine language and having your computer execute the interpreted code. Compiled languages such as Java and C++ are already interpreted (compiled), so they go right into the computer, ready to talk with your computer.

The process is something like visiting France and communicating in French. If you don’t know French, the easiest way to communicate is with an interpreter ...

Get JavaScript Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.