While developing frontend apps we often need sample data. In this article I will share a very easy way to setup a mock-server using Nodejs native http module having enough flexibility required for custom logic.
Arrow functions added in ES6 provide a good replacement for function expressions. But do you understand them completely? This is a small test to check it out.
Hoisting is an advanced and difficult to understand concept of Javascript. It becomes more challenging to follow when you deal with multiple scopes and declarations.
IIFE is an advanced design pattern used in Javascript. Because of the quirky syntax and how functions work in javascript, its a little difficult to understand concept.