Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.


Member since Feb 19, 2017

Recent Blog Comments By LarryL

  • Var For Life - Why Let And Const Don't Interest Me In JavaScript

    Posted on Feb 19, 2017 at 5:41 AM

    @Ben In your previous comment you mention a common js gotcha: for ( var i = 0 .... ) { elements[ i ].onclick = function(){ alert( i ); }; } This actually does change with the current standard for let. If var is replaced with let then i will refer to a different instance of i for each iterati... read more »