Prefer links to MDN over w3schools.
Expand variable scope example/explanation.