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

Chapter 2. ECMAScript 2015 and Browserify

JavaScript has quickly become the lingua franca of the Web and the language's syntax and semantics have long been in need of improvements. ECMAScript 2015 introduces a lot of syntactic sugar that makes writing JavaScript easier. It also provides many new useful concepts that simplify application development. We briefly introduced you to ES2015 in the previous chapter. We'll be delving deeper into ES2015, as it's important that you become familiar with what the new syntax looks like.

Furthermore, it can be extremely useful to reuse your own work and that of others as well. But doing so would require you to manage your dependencies and ensure that the appropriate libraries are included. Doing this manually can be painful; but you can leverage a tool such as Browserify to assist. Browserify is a utility that not only packages your JavaScript files along with their dependencies, but also provides a Node.js-like environment for the browser. This means that you can reuse the majority of the huge JavaScript repository that Node.js uses. After all, why reinvent the wheel if someone has already done the hard work?

In this chapter, we'll cover:

  • New ES2015 syntax
  • Using Browserify
主站蜘蛛池模板: 湘潭县| 九龙城区| 泰和县| 兴仁县| 星座| 尉犁县| 玉溪市| 临潭县| 临猗县| 白城市| 辽源市| 伊春市| 芦溪县| 长汀县| 忻州市| 普兰县| 宁南县| 兴宁市| 岳阳市| 武冈市| 西乌珠穆沁旗| 青阳县| 襄垣县| 扎囊县| 南丰县| 宾川县| 兰溪市| 石屏县| 怀安县| 合肥市| 佛山市| 哈密市| 辽源市| 盘山县| 彭山县| 延安市| 白河县| 玛纳斯县| 四子王旗| 鸡东县| 宁海县|