I've created my first complete JS app.It, which lets you add tasks and control how much time you spend on them.I I posted this on this forum,toto get some ideas how to improve readability,efficiency efficiency and the speed of my code.It would be great if you guys gave me some advice and shared your thoughts on my code. First
The first table shows tasks,that that you add via input box.Every Every time you press the "Add task" button,"generateRow()" the generateRow() function will be called.If If you click start,"addSecond" addSecond will be called every second(setInterval ()setInterval() in my "stopTimer"stopTimer function),which which will update clock object's "second" property.So the
The timer will start running and the task will move to "In progress"Progress" table.If If you click the "Stop" button,the the timer will stop, and the "Stop" button becomes a "Start" button.When When you hit "End task", the task will move to "Done" table and the timer will automatically stop. You can delete any task anytime,or or click the "Clear table" button above every table to erase all table's data.
The code has some comments to help you understand it better.If you have any questions about code or something is unclear,please let me know.