Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update solution hints of basic class chapter #3782

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions 1-js/09-classes/01-class/1-rewrite-to-class/solution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Solution is given in the sandbox below.

once you go through it -
1. can you stop the clock afer 5seconds?
2. why it is not stopping with current implementation?
3. try printing this in the stop function ?
4. why it is undefined ?
5. think of ways to make it access the correct timerId
6. try arrow function
7. learn the difference between these two ways