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.

Introducing JavaScript

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.

This means that a website doesn't 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.
About My name is Nguyen Manh Cuong. I was born in a poor village in Ba Vi district, HA NOI province - windy and sunny land. Currently. Mr Cuong.
Newer Posts Newer Posts Older Posts Older Posts


Post a Comment