Home >Web Front-end >Front-end Q&A >What is the scripting language javascript
Javascript is a cross-platform interpreted, dynamically typed, weakly typed, prototype-based, network scripting language. JavaScript has been widely used in web application development, and is often used to add various dynamic functions to web pages to provide users with smoother and more beautiful browsing effects.
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
JavaScript is a dynamically typed, weakly typed, prototype-based language. Its interpreter is called the JavaScript engine, which is part of the browser and is widely used in client-side scripting languages. It was first used on HTML web pages to add dynamic functions to HTML web pages.
JavaScript is a network scripting language that has been widely used in Web application development. It is often used to add various dynamic functions to web pages to provide users with smoother and more beautiful browsing effects. Usually JavaScript scripts realize their functions by embedding them in HTML.
JavaScript is a cross-platform interpreted language that does not require pre-compilation and can run under various operating systems.
JavaScript has the following characteristics:
1) Interpreted scripting language
JavaScript is an interpreted scripting language, similar to C, C and other languages Different from needing to compile before running, code written in JavaScript does not need to be compiled and can be run directly.
2) Object-oriented
JavaScript is an object-oriented language. Using JavaScript, you can not only create objects, but also operate and use existing objects.
3) Weak type
JavaScript is a weakly typed programming language that does not have strict requirements on the data type used. For example, you can initialize a variable to any type, or you can initialize it at any time. Change the type of this variable.
4) Dynamic
JavaScript is an event-driven scripting language that can respond to user input without the help of a Web server. For example, when we visit a web page , when you click on a web page with the mouse or scroll the window, you can directly respond to these events through JavaScript.
5) Cross-platform
JavaScript does not depend on the operating system and can run in the browser. Therefore, after a JavaScript script is written, it can be run on any system, as long as the browser on the system supports JavaScript.
Why should you learn JS
JS is currently the most popular and widely used client-side scripting language. It plays a decisive role in the field of Web development and is the key to becoming a One of the essential skills for an excellent front-end engineer.
Compared with other programming languages, learning JS has the following advantages:
JavaScript is the most popular client-side scripting language and is easy to learn. After learning, you can use some JavaScript-based frameworks (such as JQuery, Node.js) to develop front-end or back-end applications;
JavaScript can be used in a web browser Run, so to learn JavaScript, you don’t need to configure any special running environment;
JavaScript is widely used, such as mobile application development, desktop application development, Web game development, etc. JavaScript provides more employment opportunities for JavaScript programmers;
JavaScript has a large number of high-quality frameworks and libraries, with the help of which you can greatly reduce your development time.
What JS can do
JavaScript can be used in various areas of web development, such as:
Web application development: The web pages we browse in daily life are composed of HTML, CSS, and JavaScript. Through JavaScript, the styles of elements in the web page can be updated in real time, and the interaction between people and web pages can be realized (such as monitoring users Whether the mouse is clicked or a key is pressed, etc.), you can also add some cool animations to the web page;
Mobile application development: In addition to web application development, JavaScript can also be used to develop applications on mobile phones or tablets, and we can also use some excellent frameworks (such as React Native) to make development easier;
Web Games: The small games we have played on the web can all be implemented using JavaScript;
Back-end Web application development: In the past, we used JavaScript to perform the front-end part of the Web application. development, but with the emergence of Node.JS (a JavaScript runtime environment), JavaScript can also be used to develop the back-end part of web applications.
[Recommended learning: javascript advanced tutorial]
The above is the detailed content of What is the scripting language javascript. For more information, please follow other related articles on the PHP Chinese website!