Today's learning challenge focused on Javascript's functions and scoping rules. Like most things JavaScript the rules are a bit off from my expectations. Take this for instance:
var something = 1;
{
var something = 2;
}
console.log(something);
What is the value of something
? If you said '1', JavaScript reminds you that …