Home > Articles

📄 Contents

  1. JavaScript History
  2. JavaScript Today
  3. The Future Of JavaScript
  4. What Is the Difference Between a Scripting Language and a Programming Language?
  5. Tools for the JavaScripter!
  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

What Is 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. This means that, similar to Java, it can run anywhere.

  • JavaScript embeds easily into other software, like browsers (try doing that with C++!).

What this all means is that if you have some C, C++, Pascal, BASIC, Java, FORTRAN, or Perl experience, you might find that some aspects of JavaScript seem familiar. However, don't expect to be able to create JavaScript using any of them—to write JavaScript you have to use JavaScript!

  • + Share This
  • 🔖 Save To Your Account