hello.js

var please = require('share');
console.log('thank you');

Tuesday, 26 February, 2019 UTC

Currying in JS: Answering the traditional question, Add(2)(3), which gives sum of both numbers.

Currying in JS: Answering the traditional question, Add(2)(3), which gives sum of both numbers.

Understanding concept of currying and in depth analysis of most frequent interview questions around it - Table of contents First, Implement add(2)(3) in JavaScript Github Gist References ... more


Saturday, 2 February, 2019 UTC

Currying in JS: Answering the traditional question, Add(2)(3), which gives sum of both numbers.

Currying in JS: Answering the traditional question, Add(2)(3), which gives sum of both numbers.

Understanding concept of currying and in depth analysis of most frequent interview questions around it - Table of contents First, Implement add(2)(3) in JavaScript What is currying? Variants of add(2)(3) problem add(2)(3)(4)..., for endless number of ... more


Thursday, 8 November, 2018 UTC

Will <code>(a===1 && a===2 && a===3)</code> (strict comparison) ever be true (in JavaScript)

Will <code>(a===1 && a===2 && a===3)</code> (strict comparison) ever be true (in JavaScript)

Extension to traditional JavaScript problem (a==1 && a==2 && a==3) (loose equality) and its solution - Let’s understand how can we make (a===1 && a===2 && a===3) to ever be true with help of getter-setter descriptors. We ... more


Saturday, 16 December, 2017 UTC

Understanding meta-property - newTarget

Understanding meta-property - newTarget

Digging deep into newTarget - `new.target` from ECMAScript 2015 (aka ES6) - new.target is one of newly introduced meta-properties that have made it to ECMAScript/JavaScript. It is also known as newTarget in official ES2015 specifications. It lets you ... more