- Mastering JavaScript Promises
- Muzzamil Hussain
- 180字
- 2021-07-16 13:46:48
Summing up – the asynchronous programing model
So far, we have seen how the asynchronous model is implemented in JavaScript. This is one core aspect of understanding that JavaScript has its own implementation for the asynchronous programming model, and it has employed much of the core concepts in the asynchronous programming model.
- The asynchronous mode is very important. In the browser, a very time-consuming operation should be performed asynchronously, avoiding the browser unresponsive time; the best example is the Ajax operations.
- On the server side, the asynchronous mode of execution since the environment is single threaded. So, if you allow synchronization to perform all http requests, server performance will decline sharply and will soon lose responsiveness.
- These are simple reasons why implementation on JavaScript is widely accepted in modern applications on all ends of needs. Databases such as MongoDB, Node.js as Server Side JavaScript, Angular.js, and Express.js as frontend, and logic building tools are examples of how heavily JavaScript is implemented throughout the industry. Their stack is commonly refer red to as the MEAN stack (MongoDB, Angular.js, Express.js, and Node.js)
推薦閱讀
- The Complete Rust Programming Reference Guide
- 從零構建知識圖譜:技術、方法與案例
- JavaScript+jQuery網(wǎng)頁特效設計任務驅(qū)動教程(第2版)
- Python語言程序設計
- Java Web開發(fā)之道
- Scratch 3游戲與人工智能編程完全自學教程
- Mastering macOS Programming
- JavaScript by Example
- Java Web開發(fā)技術教程
- Learning Data Mining with R
- Linux Device Drivers Development
- Learning Three.js:The JavaScript 3D Library for WebGL
- Java:High-Performance Apps with Java 9
- Apache Spark 2.x for Java Developers
- Creating Mobile Apps with jQuery Mobile(Second Edition)