- 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)
推薦閱讀
- C++面向對象程序設計(第三版)
- Mastering Adobe Captivate 2017(Fourth Edition)
- 計算機圖形學編程(使用OpenGL和C++)(第2版)
- Hands-On JavaScript High Performance
- PhpStorm Cookbook
- 大學計算機基礎(第2版)(微課版)
- 基于Swift語言的iOS App 商業實戰教程
- Android底層接口與驅動開發技術詳解
- C/C++數據結構與算法速學速用大辭典
- Visual Basic程序設計習題與上機實踐
- Learning Hadoop 2
- PhoneGap 4 Mobile Application Development Cookbook
- Drupal 8 Development:Beginner's Guide(Second Edition)
- 大學計算機應用基礎(Windows 7+Office 2010)(IC3)
- 歐姆龍PLC編程指令與梯形圖快速入門