Concepts and features of JavaScript

Source: Internet
Author: User

Whether you know about the features of JavaScript. Here we will share with you the purpose of using JavaScript with HTML hypertext markup language and Java scripting language Java applets) connect multiple objects in a Web page to interact with Web customers. This allows you to develop client applications.

JavaScript and Its Features

JavaScript is a scripting language based on Object and event-driven with secure performance. It is used to connect multiple objects on a Web page with HTML hypertext markup language and Java scripting language Java Applet, and interact with Web customers. This allows you to develop client applications. It is implemented by embedding or calling it into a standard HTML language. Its appearance makes up for the defects of the HTML language. It is a compromise between Java and HTML and has the following basic JavaScript features:

1. JavaScript is a scripting language.

JavaScript is a scripting language that uses small program segments for programming. Like other scripting languages, JavaScript is also an explanatory language that provides an easy development process. Its basic structure is similar to C, C ++, VB, and Delphi. But unlike these languages, it needs to be compiled first, but is interpreted row by row during the program running. It is combined with HTML tags to facilitate user operations.

2. Object-based language.

JavaScript is an object-based language and can be viewed as an object-oriented language. This means that it can use the created objects. Therefore, many functions can come from the interaction between methods of objects and scripts in the script environment.

3. Simplicity

The simplicity of JavaScript is mainly reflected in: first, it is a simple and compact design based on the Basic Java statements and control flow, which is a very good transition for learning Java. Second, its variable type is weak, and strict data types are not used.

4. Security

JavaScript is a security language that does not allow access to a local hard disk, store data on a server, and modify or delete network files, information Browsing or dynamic interaction can only be achieved through a browser. This effectively prevents data loss.

5. Dynamic

JavaScript is dynamic. It can respond directly to user or customer input without passing through Web service programs. Its response to users is event-driven. Event-driven refers to the action that occurs when an operation is performed on the home page (HomePage). It is called an Event ). For example, pressing the mouse, moving the window, and selecting a menu can all be regarded as events. When an event occurs, it may cause the corresponding event response.

6. cross-platform

JavaScript depends on the browser itself and has nothing to do with the operating environment. It can be correctly executed by browsers that can run the computer of the browser and support JavaScript. Thus realizing the dream of "writing once and going all over the world. In fact, the most outstanding thing about JavaScript is that it can do a lot of things with a very small program. There is no need for a high-performance computer. The software only needs a word processing software and a browser. Without a WEB server channel, you can do everything through your computer.

In summary, JavaScript is a new description language that can be embedded into HTML files. The JavaScript language can respond to user requirement events (such as form input), instead of transmitting data back and forth over the network. Therefore, when a user inputs a data item, it can be directly processed by client applications without being transferred to the server for processing.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.