From 51bac5a973a3b86b6f158b3f452dd53a2e93659f Mon Sep 17 00:00:00 2001 From: Krishna Saini Date: Sun, 10 Nov 2024 08:11:30 +0530 Subject: [PATCH] Update solution hints of basic class chapter found a bug that if you want to stop the timer under current implementation, it will be not possible. --- .../09-classes/01-class/1-rewrite-to-class/solution.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/1-js/09-classes/01-class/1-rewrite-to-class/solution.md b/1-js/09-classes/01-class/1-rewrite-to-class/solution.md index e69de29bb2..6468bb01f9 100644 --- a/1-js/09-classes/01-class/1-rewrite-to-class/solution.md +++ b/1-js/09-classes/01-class/1-rewrite-to-class/solution.md @@ -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