-
This exercise is a work-log (aka timesheet) application. Run the fixed version of the exercise ("ex2-fixed.html") in your browser and play around to see the expected behavior.
-
For this exercise, you should only need to make changes to "ex2.js", not the HTML or CSS. You should not need to create new functions or reorganize significant chunks of code for this exercise; only a few spot changes and a few lines of code are necessary.
-
There are several things that can be improved in "ex2.js", including:
- are there anonymous function expressions which could be improved with a lexical name?
- are there usages of
var
which are more appropriate to be declared withlet
orconst
? Do any literal values need to be made intoconst
ant declarations? - should certain variable declarations be contained in explicit blocks of scope?
-
BONUS: How would you describe to a coworker or boss the improvements in readability after applying your knowledge of scoped declarations to this code? Write out a few sentences.
ex2-scoping
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||