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

Chris Jones

Member since Nov 13, 2015

Recent Blog Comments By Chris Jones

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

    Posted on Nov 13, 2015 at 8:01 AM

    @Ben, Would totally agree that the code example smells. The second example introduces mutation into your algorithm unnecessarily in an effort to improve readability. A better approach would be to use CONST to clarify the intent of the RegEx's const leadingSpaces = /^\s+/; const trailingSpace = /\... read more »