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

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
主站蜘蛛池模板: 涟水县| 广河县| 武川县| 军事| 肥东县| 吉隆县| 图木舒克市| 兰考县| 尼玛县| 荃湾区| 敦煌市| 石家庄市| 高尔夫| 新闻| 宜良县| 通江县| 娱乐| 祁东县| 潞城市| 云南省| 郎溪县| 河曲县| 德昌县| 桂阳县| 黑龙江省| 广饶县| 汉阴县| 临沂市| 伊宁县| 巨野县| 辽阳市| 扶风县| 鞍山市| 临武县| 五华县| 康平县| 景德镇市| 耿马| 绥中县| 上饶市| 乌拉特后旗|