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

  • 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
主站蜘蛛池模板: 邵东县| 老河口市| 固始县| 安徽省| 常德市| 剑川县| 乌兰县| 绥化市| 电白县| 米易县| 拉孜县| 富蕴县| 陕西省| 红河县| 祁阳县| 郁南县| 扶沟县| 常山县| 高阳县| 岳池县| 鄂托克前旗| 子洲县| 兖州市| 碌曲县| 浪卡子县| 洛隆县| 资兴市| 隆尧县| 崇信县| 上饶县| 宁陕县| 偏关县| 盐边县| 阜城县| 深圳市| 南开区| 亚东县| 五大连池市| 清苑县| 南澳县| 彭阳县|