What does that setTimeout call actually log — and what happened to this? Go!

Estimated read time 1 min read

Post Contenthttps://www.youtube.com/shorts/NPfMT7Wrfb8

​ 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   Read More Google for Developers 

You May Also Like

More From Author