What does that setTimeout call actually log — and what happened to this? Go!
Can you spot the bug in this JavaScript challenge? We define an object with a greet method and call it directly. So far so good. Then we pass that same method to setTimeout. Same method… different result! What happened? Check out the video and share your best answer in the comments.
Subscribe to Google for Developers → https://goo.gle/developers
Speaker: Sayali Godbole
Watch on YouTube ↗
(saves to browser)
DeepCamp AI