What is JavaScript?
What is JavaScript?
JavaScript is a programming language of HTML and WEB. It is lightweight and most commonly used as part of web pages, but their implementation allows Client-Side scripts to interact with users and create dynamic websites. It is an interpreted programming language with object-oriented capabilities.
JavaScript was first known as Mocha, and then LiveScript, but Netscape changed its name to JavaScript, because of its popularity as a Java phenomenon at the time. JavaScript first appeared in Netscape 2.0 in 1995 with the name LiveScript. The versatile core of this language has been embedded in Netscape, IE, and other browsers.
The ECMA-262 Specification defines a standard version of the JavaScript language as follows:
- JavaScript is a lightweight, interpreted program language.
- Designed to create central network applications.
- Add and integrate with Java.
- Add and integrate with HTML.
- Open and multi-platform.
Client-side JavaScript
Client-Side JavaScript is the most popular form of this language. The script should be included in an HTML document for coding to be interpreted by the browser.
That is, a website does not need to be a static HTML, but can include programs that interact with users, control the browser, and create dynamic HTML content.
Client-Side JavaScript technology provides many advantages over the CGI Server-Side Script. For example, you can use JavaScript to check if the user has entered a valid email address in a Form field.
JavaScript code is executed when the user submits a Form, and only if all inputs are valid, they will be submitted to the Web Server.
JavaScript can be used to capture user-initiated events such as clicks, link navigation, and other activities that users create.
The advantages of JavaScript
The advantages of using JavaScript are:
Less Server interaction : You can confirm user input before sending the page to the Server. This saves server load, meaning that your server loads less.
Immediate feedback to visitors : They don't have to wait for a site to reload to see if they forgot to enter something.
Increased interoperability : You can create interfaces that react when users hover over them or activate them via the keyboard.
Richer interface : You can use JavaScript to include items such as Drag and Drop components (DnD) and sliders (Slider) to provide a Rich Interface to the guest site. your access.
Limitations of JavaScript
We cannot treat JavaScript as a full-fledged program language. It lacks the following important features:
- Client-side JavaScript does not allow reading and writing files, because of security reasons.
- JavaScript is not used for networking applications because there are no support available.
- JavaScript does not have any multi-threading or multi-processing capabilities.
Again, JavaScript is a lightweight, interpreted program language that allows you to build interoperability in static HTML pages.
JavaScript development tools
One of the biggest strengths of JavaScript is that it does not require expensive development tools. You can start with a simple text editor (Editor) like Notepad. When it is an interpreter language within the context of a web browser, you do not need to purchase a compiler.
To make your life simpler, many vendors have released beautiful JavaScript editing tools, listed below:
Microsoft FrontPage Microsoft has developed a popular HTML Editor called FrontPage. FrontPage also provides developers with JavaScript tools to help create interactive Web sites.
Macromedia Dreamweaver MX Macromedia Dreamweaver MX is a very popular HTML and JavaScript Editor in the professional web programming community. It provides pre-built JavaScript components that are convenient, integrate well with databases, and follow new standards like XHTML and XML.
Macromedia HomeSite 5 HomeSite 5 is an HTML and JavaScript Editor from Macromedia that can be used to manage personal Websites effectively.
JavaScript today?
The ECMAScript Edition 5 standard will be the first update published in the last 4 years. JavaScript 2.0 follows the ECMAScript Edition 5 standard, and the differences between them are few.
Technical details for JavaScript 2.0 can be found in the following site: http://www.ecmascript.org/
Today, Microsoft's Netscape and JScript JavaScript follow ECMAScript standards, although both languages still support features that are not part of the standard.
According to Tutorialspoint
Previous post: Date & Time in PHP
Next lesson: JavaScript syntax
You should read it
- Syntax of JavaScript
- What is JavaScript? Can the Internet exist without JavaScript?
- Udemy's top 5 JavaScript courses
- Learn about ES6 in Javascript
- ! = and! == What is the difference in JavaScript?
- What is Currying in Javascript? How to use Currying in JavaScript
- Things to know about 'this' in JavaScript
- 7 Framework JavaScript for mobile application development
- Top site with many good JavaScript exercises to practice
- Summary of JavaScript exercises with sample code
- What is the difference between Java and JavaScript?
- Image Map in JavaScript