Nice tutorial, straight to the point. I have read that you can use one more parameter to the addEventListener method that accepts an object with the key once and the value true {once: true} to remove the attached listener. Are there any differences between these two approaches? Tnx!
Oh wow! I didn't know that { once: true } existed. Thanks for teaching me that! I'm going to use that now. It looks like the only difference is it is not supported in old IE.
It's good to see you again here!
I just love the way you pack all the useful info in ~10mins..
This is nicely explained, I watch a lot of tutorials and this is well done and straight to the point. You should do a lot more. Thanks.
Missed you
Awesome! Welcome back! :D
Great video!
helps me ALOT. thanks
Nice tutorial, straight to the point.
I have read that you can use one more parameter to the addEventListener method that accepts an object with the key once and the value true
{once: true} to remove the attached listener.
Are there any differences between these two approaches?
Tnx!
Oh wow! I didn't know that { once: true } existed. Thanks for teaching me that! I'm going to use that now. It looks like the only difference is it is not supported in old IE.
nice vid, but a quick time from MDN regarding that third parameter:
If not specified, useCapture defaults to false.
nice tut but your lack of semicolons makes me feel uneasy
2:06
@@kylerobinsonyoung lmao