Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: What are the nice feature you need in a programming language?. Parent comment
const someBlock = function () { console.log(this.a + 2 + this.c); }
const myFunc = someBlock.bind({a: 1, c: 3})
myFunc(); // => 6
There are no comments on this comment yet.
const someBlock = function () { console.log(this.a + 2 + this.c); }
const myFunc = someBlock.bind({a: 1, c: 3})
myFunc(); // => 6