Main applications of JavaScript: 1. Website front-end development; 2. Server-side development; 3. Command line tool development; 4. Desktop application development; 5. Mobile development (Web app, hybrid application development) ; 6. Plug-in development; 7. Game development, etc.
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
JavaScript, referred to as JS, is a client-side scripting language that is mainly used to add various dynamic functions to HTML web pages to provide users with smoother and more beautiful browsing effects. It can be directly embedded in HTML pages, but writing it as a separate js file is conducive to the separation of structure and behavior. With the support of most browsers, it can run on multiple platforms (such as Windows, Linux, Mac, Android, iOS, etc.) , JS mainly runs on the client (browser), and can also run on the server (operating system).
Main application aspects (scenarios) of javascript:
1. Website front-end development
A master of Javascript. Used to implement front-end logic, such as what happens when you click a button.
2. Server-side development
Node.js allows programmers to freely write the backend using js.
3. Command line tool development (Node.js)
4. Desktop application development
mainly refers to chrome Wait until the browser can package programs written in js into desktop applications. Chrome OS, promoted by Google, is also an operating system based on web apps.
5. Mobile development
1), Web app
HTML5 provides a lot of API support, which can realize most of the functions of native applications. But the performance needs to be improved. Firefox OS is a mobile operating system based on web apps.
2), Hybrid application development
Implement part of the native application with front-end technology to make the native application more flexible. Many apps do this. The emergence of platforms like PhoneGap allows programmers to use js for mobile app development.
6. Plug-in development
Javascript is the only programming language that is natively supported on all mainstream platforms, so js can be used on all mainstream platforms. Plug-in development. Common ones include browser plug-ins and extensions. At the same time, most mobile application plug-in platforms also use js for plug-in development, because one-time development can ensure cross-platform use.
7. Game development (cocos2d-js)
[Related recommendations: javascript learning tutorial]
The above is the detailed content of What are the main applications of javascript?. For more information, please follow other related articles on the PHP Chinese website!