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

  • JavaScript:Moving to ES2015
  • Ved Antani Simon Timms Narayan Prusty
  • 172字
  • 2021-07-09 19:07:43

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
主站蜘蛛池模板: 新源县| 黄梅县| 新泰市| 柞水县| 都兰县| 田林县| 广丰县| 普陀区| 库车县| 太谷县| 雷山县| 临猗县| 鱼台县| 大兴区| 沈丘县| 昌吉市| 清水河县| 高要市| 平南县| 化州市| 天峨县| 石门县| 区。| 定边县| 凤凰县| 射洪县| 宜都市| 晋城| 武邑县| 孟州市| 杂多县| 垫江县| 旌德县| 涞源县| 鱼台县| 徐汇区| 盐源县| 吴江市| 肥东县| 望奎县| 景谷|