What’s Different about JQuery from other Coding Languages?
JQuery is a Scripting Language
The first and most major difference is that JQuery is a scripting language. Unlike traditional programming languages, it is interpreted, not executed. In a traditional programming language, the sequence of events when you code is this:
• Write code in the language syntax
• Compile code using a compiler
• Some languages then use a linker to create an executable
• The program is then executed when needed.
JQuery has a different sequence of events. When inserted into HTML code, JQuery becomes part of the HTML document. Then,
• The scripted document rests on the server until accessed
• When accessed, the code is parsed by the browser and the code is interpreted
• The browser interprets the content and delivers it to the user in the HTML document.
Other major differences depend on the language that it is being compared to. There are languages that are like JQuery such as Ruby in how they function, and others that have significant differences. We will explore the major differences between JQuery and two of the most popular desktop languages, Java and C++.
Java is an object-oriented, write-once-run-anywhere desktop, mobile, and sometimes Web programming language. By object-oriented, it means that each of the elements in the code (its functions) except for primitives such as integers and characters, are all referred to as objects. Each object inherits its properties from its parent class, or library of Java code that gives it those properties. In addition, it uses a runtime environment or a machine-specific program base. When you execute a Java program in that environment, the code that was compiled will run on any machine for which there is an available runtime environment. It has somewhat obtuse syntax, deriving its conventions from C and C++.
Similarities to other languages
C++ is used for regular and object-oriented desktop programming. It is the language of choice for most desktop-only applications as it is extremely powerful and flexible. Its object-oriented potential makes it easier for programmers to create and destroy parts of the program at runtime, making it useful for everything from creating a new document in a word processor to having an enemy disappear after being vanquished in a video game.