Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What language is javascript? What does it do?


May 31, 2021 Article blog



Javascript, short for "js", is a browser-side scripting language that handles the interaction of web clients with users and implements page effects. I t is an advanced, literal, explanatory language, is a basic prototype, function-first language, it supports object-oriented programming, imperative programming, and functional programming.

To know what javascript does, let's first understand its characteristics:

Javascript features:

1, scripting language

Javascript is a language that interprets the type of interpretation, unlike the c-plus and c-languages (compiled first and executed later), and it is interpreted on every line of the program during its run.

2, object-based

Javascript is not only an object-based scripting language, it can create objects or use existing objects directly.

3, dynamic

Javascript is an event-driven scripting language, such as when a user visits a web page, the mouse clicks, moves and other operations, javascript is directly to these times, and does not need to be through the web server to make the user's behavior accordingly.

4, simplicity

Javascript is a weak type of variable type that is not strictly required for data types, and her design is simple and compact.

5, cross-platform

Javascript is not dependent on the operating system, as long as the browser support, it can be compiled directly to any support browser scripting language can be directly used, and javascript has been supported by almost all browsers. (Recommended learning: JavaScript Zero Basic Getting Started to Advanced)

What does javascript do?

1, processing forms, check user input, and provide feedback. For example, if a form needs to enter an email address and the user enters a mobile phone number, javascript will prompt for an incorrect reminder.

2, with the page interaction, the corresponding user's click, to provide users with a better experience

3, according to user action, dynamic creation of pages. For example, the user sends the mailbox, the store attachment operation

4, cookie settings, cookies are used to store temporary information on the browser, such as the website address, user name and so on.

5, data communication, browser and server data communication, such as asynchronous transmission of ajax;

6, rich interface, the use of JavaScript to put components, sliders and other items, to provide a richer interface for the site.

7, javascript can regularly repeat the html segment simplified, reduce the download time.


What language is javascript for? W hat does it do? Here, if you need to learn more about this, you can follow our QR code and get more relevant knowledge points.

 What language is javascript? What does it do?1