Skip to main content
Ben Nadel at cf.Objective() 2010 (Minneapolis, MN) with: Jamie Krug and Simon Free
Ben Nadel at cf.Objective() 2010 (Minneapolis, MN) with: Jamie Krug@jamiekrug ) and Simon Free@simonfree )

LarryL

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 »