Skip to content

Conversation

@diyanarmln
Copy link

Please fill out the survey before submitting the pull request. Thanks!

🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀

How many hours did you spend on this assignment?

Please fill in one error and/or error message you received while working on this assignment.

What part of the assignment did you spend the most time on?

Comfort Level (1-5):

Completeness Level (1-5):

What did you think of this deliverable?

Is there anything in this code that you feel pleased about?

Copy link

@michelle-mok michelle-mok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome work organising your code!
also well done with the lapEvent!
consider adding more comments so that it is easier for the reader to follow what your code is doing :)
keep up the good work!

timerDisplay.innerHTML = '00:00:00';
canClickLapButton = false;
}
else { userMsg.innerText = 'Reset timer is available once timer has stopped.';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is clearer if you write your else statement like this:

else {
    userMsg.innerText = 'Reset timer is available once timer has stopped.';
}

lapEventCounter += 1;
lastTimerCounter = timerCounter; }
else { userMsg.innerText = 'Lap function is available when timer is running.';
setInterval(() => { userMsg.innerHTML = ''; }, 5000); }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is clearer if you write setInterval like this:

setInterval(() => {
    userMsg.innerHTML = '';
}, 5000);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants