What About the Difference Between a Scripting Language and a Programming Language?

You might have heard things in the past like “Oh yes, JavaScript is just like C++,” or “JavaScript and Java are just the same thing.” Well, in reality, neither of these statements is true. JavaScript is a third-generation language, which means it is a cousin to C, Pascal, and BASIC (if you have difficulty visualizing what this means, don't worry about it!). Similarities do exist, but so do some important differences. Here are a few:

  • JavaScript is free-formatted. This means that careful formatting is optional.

  • JavaScript is an interpreted language. This means that it is processed by a separate program on the computer.

  • JavaScript is highly portable and hardware independent. ...

Get JavaScript™ 1.5 by Example 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.