官术网_书友最值得收藏!

Chapter 9. Server-Side JavaScript

We have been focusing so far on the versatility of JavaScript as the language of the browser. It speaks volumes about the brilliance of the language given that JavaScript has gained significant popularity as a language to program scalable server systems. In this chapter, we will look at Node.js. Node.js is one of the most popular JavaScript frameworks used for server-side programming. Node.js is also one of the most watched project on GitHub and has superb community support.

Node uses V8, the virtual machine that powers Google Chrome, for server-side programming. V8 gives a huge performance benefit to Node because it directly compiles the JavaScript into native machine code over executing bytecode or using an interpreter as a middleware.

The versatility of V8 and JavaScript is a wonderful combination—the performance, reach, and overall popularity of JavaScript made Node an overnight success. In this chapter, we will cover the following topics:

  • An asynchronous evented-model in a browser and Node.js
  • Callbacks
  • Timers
  • EventEmitters
  • Modules and npm
主站蜘蛛池模板: 天等县| 广德县| 资中县| 麻栗坡县| 库尔勒市| 宜君县| 镇平县| 苍溪县| 万山特区| 子洲县| 城口县| 镇江市| 陈巴尔虎旗| 盱眙县| 安宁市| 清新县| 泰州市| 马尔康县| 汝南县| 大宁县| 平利县| 如东县| 龙门县| 遂昌县| 青海省| 浦县| 辉县市| 洛川县| 沭阳县| 沈丘县| 白河县| 都兰县| 和林格尔县| 宜都市| 乃东县| 哈尔滨市| 新田县| 龙川县| 巴塘县| 育儿| 诸暨市|