<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/what-does-that-settimeout-call-actually-log-and-what-happened-to-this-go--vhmyucixm" -->

---
title: What does that setTimeout call actually log — and what...
description: 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...
canonical: https://daily.dev/posts/what-does-that-settimeout-call-actually-log-and-what-happened-to-this-go--vhmyucixm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: What does that setTimeout call actually log — and what happened to this? Go! | daily.dev
og:description: 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...
og:url: https://daily.dev/posts/what-does-that-settimeout-call-actually-log-and-what-happened-to-this-go--vhmyucixm
og:image: https://api.daily.dev/og/posts/vHMyuCIXM.png
og:image:alt: What does that setTimeout call actually log — and what happened to this? Go!
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

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

**[Google for Developers](https://daily.dev/sources/googledevelopers)** · 1 min read · 0 upvotes · 0 comments

## Summary

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

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=NPfMT7Wrfb8>

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#google](https://daily.dev/tags/google)

[View this post on daily.dev](https://daily.dev/posts/what-does-that-settimeout-call-actually-log-and-what-happened-to-this-go--vhmyucixm)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"What does that setTimeout call actually log — and what happened to this? Go!","url":"https://daily.dev/posts/what-does-that-settimeout-call-actually-log-and-what-happened-to-this-go--vhmyucixm","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/what-does-that-settimeout-call-actually-log-and-what-happened-to-this-go--vhmyucixm"},"datePublished":"2026-03-30T13:05:08.084Z","dateModified":"2026-03-30T14:53:01.069Z","description":"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...","image":"https://i.ytimg.com/vi/NPfMT7Wrfb8/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/NPfMT7Wrfb8/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Google for Developers","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Google for Developers","logo":"https://media.daily.dev/image/upload/s--jj3nxRoG--/f_auto/v1725035497/logos/googledevelopers","url":"https://daily.dev/sources/googledevelopers"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/what-does-that-settimeout-call-actually-log-and-what-happened-to-this-go--vhmyucixm","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"general-programming,google","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"What does that setTimeout call actually log — and what happened to this? Go!","description":"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...","thumbnailUrl":"https://i.ytimg.com/vi/NPfMT7Wrfb8/sddefault.jpg","uploadDate":"2026-03-30T13:05:08.084Z","duration":"PT1M","url":"https://api.daily.dev/r/vHMyuCIXM","embedUrl":"https://www.youtube.com/embed/NPfMT7Wrfb8"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Google for Developers","item":"https://daily.dev/sources/googledevelopers"},{"@type":"ListItem","position":3,"name":"What does that setTimeout call actually log — and what happened to this? Go!"}]}
```

