Skip to content Skip to sidebar Skip to footer
Showing posts with the label Es6 Class

Are The Es6 Classes Really Semantic Sugar?

If they are just semantic sugar how can I get the same result of the following es6 scripts in es5? … Read more Are The Es6 Classes Really Semantic Sugar?

Es6 Class Extends Array: Workaround For Es5 Babel Transpile

I have some ES6 class inherited from Array: class Cache extends Array { add(item) { if(!item.… Read more Es6 Class Extends Array: Workaround For Es5 Babel Transpile

Es6 Javascript Class Inheritance, Why We Need Call To Super() From Derived Class

In javascript ES6, in inheritance, if derived class has constructor, why it is mandatory to call su… Read more Es6 Javascript Class Inheritance, Why We Need Call To Super() From Derived Class

What's The Recommended Way To Customize Tostring? Using Symbol.tostringtag Or Overriding Tostring?

I'm confused on what to implement, first, my module will use Babel so there are no problems imp… Read more What's The Recommended Way To Customize Tostring? Using Symbol.tostringtag Or Overriding Tostring?

Conditional Export In Es2015

Let's say you're developing a polyfill and don't want to shim a class if it already exi… Read more Conditional Export In Es2015

How To Add Event Listener And Move An Object In Canvas Using ES6 Classes?

I'm creating a small game where you can move a star/ufo. I'm having a hard time to figure o… Read more How To Add Event Listener And Move An Object In Canvas Using ES6 Classes?