Closed BK239 closed 6 years ago
Use block-scoped functions when applicable. I.e. instead of
(function () { var foo = function () { return 1; } // foo() == 1 (function () { var foo = function () { return 2; } // foo() == 2 })(); // foo() == 1 })();
use
{ function foo () { return 1; } // foo() == 1 { function foo () { return 2; } // foo() == 2 } // foo() == 1 }
No longer needed since assignment 3 is done!
Use block-scoped functions when applicable. I.e. instead of
use