Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Overview of JavaScript ES6 features. Parent comment
for(var i=0; i<=3; i++) count(i);
for(var i=0; i<texture.length; i++) createPattern(i); function createPattern(i) { texture[i].onload = function() { pattern[i] = ctx.createPattern(texture[i], 'repeat'); } }
It would be cool to write like this (but you cant):
pattern = texture.map(t => t.onload => ctx.createPattern(t, 'repeat'))
There are no comments on this comment yet.
It would be cool to write like this (but you cant):