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

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
主站蜘蛛池模板: 巴林左旗| 泸州市| 禹州市| 周口市| 班玛县| 湟源县| 九龙县| 井陉县| 大港区| 云霄县| 太保市| 汝州市| 屯门区| 武山县| 若尔盖县| 三河市| 青神县| 扎囊县| 金坛市| 丽水市| 吉首市| 霍城县| 延安市| 昌吉市| 青神县| 石狮市| 信丰县| 高雄县| 缙云县| 安多县| 汤阴县| 肃北| 来凤县| 七台河市| 岐山县| 平昌县| 休宁县| 巴塘县| 彰武县| 郯城县| 沙田区|