What is a Script ?
What’s the difference between Scripting and Programming Languages?
Applications of Scripting Languages :
1. To automate certain tasks in a program
2. Extracting information from a data set
3. Less code intensive as compared to traditional programming languages
Applications of Programming Languages :
1. They typically run inside a parent program like scripts
2. More compatible while integrating code with mathematical models
3. Languages like JAVA can be compiled and then used on any platform
What is JavaScript Programming Language?
JavaScript is a popular programming language that has a wide range of applications.
JavaScript is a cross-platform, object-oriented scripting language developed by Netscape. JavaScript was initially created to “make web pages alive”.
The programs in this language are called scripts. They can be written right in a web page’s HTML and run automatically as the page loads.
History of JavaScript :
JavaScript Engines:
- V8 – in Chrome and Opera.
- SpiderMonkey – in Firefox.
Uses / Application of JavaScript:
- Client-side validation
- Dynamic drop-down menus
- Displaying date and time
- Validate user input in an HTML form before sending the data to a server.
- Build forms that respond to user input without accessing a server.
- Change the appearance of HTML documents and dynamically write HTML into separate Windows.
- Open and close new windows or frames.
- Manipulate HTML "layers" including hiding, moving, and allowing the user to drag them around a browser window.
- Build small but complete client side programs .
- Displaying popup windows and dialog boxes (like alert dialog box, confirm dialog box and prompt dialog box)
- Displaying clocks etc.
Features of JavaScript:
JavaScript is a client side technology, it is mainly used for gives client side validation, but it have lot of features which are given below;
- JavaScript is a object-based scripting language.
- Giving the user more control over the browser.
- It Handling dates and time.
- It Detecting the user's browser and OS,
- It is light weighted.
- JavaScript is a scripting language and it is not java.
- JavaScript is interpreter based scripting language.
- JavaScript is case sensitive.
- JavaScript is object based language as it provides predefined objects.
- Every statement in javascript must be terminated with semicolon (;).
- Most of the javascript control statements syntax is same as syntax of control statements in C language.
- An important part of JavaScript is the ability to create new functions within scripts. Declare a function in JavaScript using function keyword.
Limitations of JavaScript:
JavaScript have some limitation which are given below;
- Client-side JavaScript does not allow the reading or writing of files.
- It cannot be used for networking applications because there is no such support available.
- It doesn't have any multithreading or multiprocessor capabilities.
0 Response to Introduction To JavaScript - History & Application Of JavaScript
Post a Comment