Introduction To JavaScript
Hello, readers and viewers, This is a warm welcome from Sparrow Man. From today you will enjoy my new JavaScript tutorial. You know now a day’s Java Script is not only necessary for making interactive websites but also programmers are using JavaScript to write their logics. Is it a really difficult programming language that causal web designers should be afraid of? First of all, we should discuss what is a programming language. Let’s start!
There are two types of programming languages:
a) Interpreted language: JavaScript is an interpreted language. Because it needs something to interpret the codes itself. As the browser goes through the JavaScript, it passes it to a special program called an interpreter, which converts the JavaScript to the machine code your computer understands.
The important thing is that is called Executing. The conversion of the JavaScript happens at the time the code is run; it has to be repeated every time this happens. Same as VBscript.
b) Compiled language: C++ and VB need to convert to machine code before it run. An important point is that this conversion has to be done only once.
So, the programmer uses a compiler to convert the code that he wrote to machine code. We use the code the machine code after compiling. These compiled machine codes are also called programs or software.
Java Script: The Programming Language of Web
JavaScript is the language that can control the behavior of any site. Of course, some other scripting languages of the web are already used by the web designer or front-end designer. Like Actionscript, Dart, VBScript & Python. But Nowadays Javascript is the most popular client-side scripting language. First, we need to know the brief history of JavaScript.
History of JavaScript:
- JavaScript invented by Brendan Eich.
- The original Code name was Mocha.
- The first official name was Live Script.
- After a few months it was named JavaScript.
- JavaScript was first published with Netscape Navigator 2.0 in 1995.
- Microsoft first published JavaScript with Internet Explorer 3.0 in 1996.
- Finally in 1997 ECMA International was specified as an official Language of the Web.
Some Confusions of Javascript:
There are some misconceptions about Java Script that you need to correct before you start to learn this language. I want to let you know about some confusion about Javascript.
- Java and Javascript are the same. But the reality is they are fully different in use and function.
- Java Script is only for Browser interactivity. But, using Javascript you can do a lot.
- Microsoft uses JavaScript to create desktop widgets
- PDF files use Javascript to improve users’ functionality
- Mac OS & Open Office use JavaScript.