ES6 Articles, Tutorials & News

ES6

Singletons in ES6 – The Good, the Bad, the Ugly

Singletons are fairly controversial as far as I can tell, especially in Javascript programming. Let’s take a look at what they are, when to (maybe) use them, and when not to. What is a Singleton? A singleton is a class that allows only a single instance o…

Read more »
ES6

ES6 Proxy and Localization

Maybe you’ve heard of JavaScript Proxy and think, “Hey that’s cool and such, but what should I use it for?” Don’t worry, I thought this too until recently when I needed a catch-all solution. And BEHOLD, the indirect intermediary known only as “Proxy” aros…

Read more »
ES6

ES6

Javascript-ES6-ECMAScript6-ES2015 – 前端近些年发展很快,作为前端技术的核心支撑JS也从ES5过渡到了ES6,强有力的推进了前端的发展。作为一名前端从业人员学习掌握ES6是必不可少的一项技能。本项目对自己项目中运用过的ES6语法知识给予介绍,并给出大量简洁易懂的示例代码,对于初学者来说敲过本项目中的代码,基本就入门ES6了,再在实际中运用所学知识、补充不足,…

Read more »
ES6

ES6 for beginners part-3

ES6 array filter, array map, array reduce, template literals, imports and exports, destructuring objects and arrays, class extend and super…

Read more »
ES6

The ES6 Promises

Promises introduced in ES6 to improve handling of async operations. They are around for a long time but with ES6 they became part of vanilla JavaScript. Now you can use Promises in your JavaScript…

Read more »