I'm a Floridian web engineer who planted his roots in Paris. Some of my favorite past-times are analyzing and optimizing development processes, building solid APIs, mentoring junior devs, and long walks on the beach.

Accidental Globals in JavaScript

var thing = function(){
    var a = b = 0;


console.log(a);  //ReferenceError, that makes sense b/c 'a' wasn't defined in global scope
console.log(b);  //0, oh noes!! Looks like our multiple equals statement from line 2 sets 'b' implicitly as a global