commonly used as a part of web pages, whose implementations allow client-side
script to interact with the user and make dynamic pages. It is an interpreted
programming language with object-oriented capabilities.
LiveScript. The general-purpose core of the language has been embedded in
Netscape, Internet Explorer, and other web browsers.
Designed for creating network-centric applications.
Complementary to and integrated with Java.
Complementary to and integrated with HTML.
Open and cross-platform
- Interpreted programs versus Compiled programs
- Before we start discussing the differences between interpreted and compiled we have to define the term source code or as it is more commonly referred to, the code. The code is the plain text commands that the program is written in. All programming languages start out as source code, it is then either interpreted or compiled. The code that you will create in this course can be considered source code.
- Interpreted programming languages tend to be simpler to program but slower to execute in general. Each time a program is run it has to be interpreted (interrogated) line by line, based on the flow of execution (you will see later branches and loops affect the flow of execution).
- Compiled programming languages have a more complex syntax, and require more strict programming practices. With a compiled programming language you first write the source code, then you feed it to a compiler (a special computer program) which produces an executable binary program. On the Windows platforms the output of the compiler usually ends in the “.exe” file extension. The program that comes out of the compilation process tends to be platform (operating system) specific. The key benefit for the programmer is that no other programmer can look at the source code once it is compiled. The other key factor is that the language used to write the source code becomes irrelevant once it has been compiled.
The script tag takes two important attributes −