I just started with the second JavaScript course after I finished part 1. I love the video’s and everything is explained very well. It’s a lot of fun.
Could someone help me understand the solution of the section ‘Prototypes’. It’s the exercize where we remodify the Stopwatch(). I found it difficult to understand and it took me some time to make it work only a little bit. I got an error, and after watching the solution I still don’t understand. I copied his code but it doesn’t seem to work eigher:
When I type “sw.start()” in the console twice it doesn’t give an error where it suppose to do so, and sw.running is unaffected after (where it suppose to be set to “true”).
Sorry for the long story, here’s my question: What am I doing wrong?
Ok, I’ve watched the video for the 10th time… It still doesn’t work.
In the end Mosh tells us the duration can’t be set because we need to implement a setter. Shouldn’t this then also apply to “running”? We are also updating this value within the start and stop method.
Please help me I’m a sponge desperate for more information
onesly i skip without check-it but i stop to prototype.
In prototype there is a exercize about stopwatch.
First second thirt … till 10 … times i try and it’s not works but i think with the implementation with DOT-prototype it’s will works well.
I am dyslessic and some time i think “it was my problem for dont understand in deeply the topic”, before skip i try too much times. in that context of funzions it’s for me little bit complicete to follow at 100%.
I am also a little bit background of Python and C++.
Me i write on paper first and i re-watch tutorial and write on the file and try what i do in this exercize. It’s only.
Thanks a lot at all!