Module in NodeJS and ES6

Modules are frequently used techniques which is an important part of decoupling and make the code more readable and organised. Module in NodeJS In NodeJS, keywords module, exports and required are exploited to create/import a module. Here are three ways of creating a module. Some examples: [gist https://gist.github.com/arkilis/78bc95a7c450f85c9b5e7ff8ca009424/] Module in ES6 In ES6, we can
Read More »

Iterator and Generator in ES6

Iterator and Generator are commonly used features in ES6. In this post, we will walk through the key features of iterator and generator in depth. Iterator In JavaScript, an object can be iterated due to it has an inner-built property/object: iterator (which objects?). So in order to let an ordinary object can be iterator, we
Read More »