hello.js

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

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