🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Gavin Johnston
    Gavin Johnston
    9,107 Points

    How does the setTimeout function knows that the argument should be passed to the function expression?

    Posted February 26, 2021 6:50pm by Gavin Johnston
    Gavin Johnston
    9,107 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    3 Answers

  • Karl Russell Sumando Menil
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Karl Russell Sumando Menil
    Full Stack JavaScript Techdegree Student 4,004 Points

    JavaScript and the DOM errors not running properly

    Posted February 11, 2021 11:15pm by Karl Russell Sumando Menil
    .a{fill-rule:evenodd;}techdegree
    Karl Russell Sumando Menil
    Full Stack JavaScript Techdegree Student 4,004 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    0 Answers

  • Tadjiev Codes
    Tadjiev Codes
    9,626 Points

    Trying to understand setTimeOut

    Posted July 1, 2020 11:16pm by Tadjiev Codes
    Tadjiev Codes
    9,626 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    3 Answers

  • Joseph Michelini
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Joseph Michelini
    Python Development Techdegree Graduate 18,692 Points

    Does passing an arrow function expression for the first time as an argument to a method mean that I can't use it later?

    Posted May 25, 2020 6:31pm by Joseph Michelini
    .a{fill-rule:evenodd;}techdegree seal-36
    Joseph Michelini
    Python Development Techdegree Graduate 18,692 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    2 Answers

  • Jiten Mehta
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Jiten Mehta
    Front End Web Development Techdegree Graduate 21,209 Points

    Understanding the setTimeout method

    Posted January 12, 2020 10:21am by Jiten Mehta
    .a{fill-rule:evenodd;}techdegree seal-36
    Jiten Mehta
    Front End Web Development Techdegree Graduate 21,209 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    3 Answers

  • Ewerton Luna
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ewerton Luna
    Full Stack JavaScript Techdegree Graduate 24,031 Points

    how does the setTimeout function knows that the argument 'hey, there' should be passed to the function expression?

    Posted July 26, 2019 11:25am by Ewerton Luna
    .a{fill-rule:evenodd;}techdegree seal-36
    Ewerton Luna
    Full Stack JavaScript Techdegree Graduate 24,031 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    1 Answer

  • vamosrope14
    vamosrope14
    14,932 Points

    Shouldn't greetings and the delay number have gone inside (something)?

    Posted June 14, 2019 10:17pm by vamosrope14
    vamosrope14
    14,932 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    1 Answer

  • Kristoffer A-L
    Kristoffer A-L
    5,863 Points

    Not able to delay function

    Posted May 27, 2019 7:53am by Kristoffer A-L
    Kristoffer A-L
    5,863 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    1 Answer

  • Mahmoud Nasser
    Mahmoud Nasser
    5,507 Points

    Passing functions to functions as Arguments

    Posted July 11, 2018 12:34am by Mahmoud Nasser
    Mahmoud Nasser
    5,507 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    1 Answer

  • Ramesh Kunwar
    PLUS
    Ramesh Kunwar
    Courses Plus Student 4,066 Points

    function as parameter

    Posted July 2, 2018 4:27am by Ramesh Kunwar
    Ramesh Kunwar
    Courses Plus Student 4,066 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    1 Answer

  • Nicholas Wallen
    Nicholas Wallen
    12,278 Points

    I keep seeing Guil use => but I can't seem to figure out where that was taught...

    Posted May 2, 2018 3:24am by Nicholas Wallen
    Nicholas Wallen
    12,278 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    2 Answers

  • Michael Chambers
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Michael Chambers
    Full Stack JavaScript Techdegree Graduate 28,393 Points

    For those having difficulty with callback functions https://teamtreehouse.com/library/callback-functions-in-javascript

    Posted April 11, 2018 2:37am by Michael Chambers
    .a{fill-rule:evenodd;}techdegree seal-36
    Michael Chambers
    Full Stack JavaScript Techdegree Graduate 28,393 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    6 Answers

  • Conary Beckford
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Conary Beckford
    Full Stack JavaScript Techdegree Student 5,046 Points

    Console log not responding.

    Posted March 30, 2018 4:11pm by Conary Beckford
    .a{fill-rule:evenodd;}techdegree
    Conary Beckford
    Full Stack JavaScript Techdegree Student 5,046 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    4 Answers

  • Shyam Gupta
    Shyam Gupta
    7,757 Points

    How is this function executing when it's not being called? Isnt the code just a function declaration?

    Posted July 28, 2017 6:17pm by Shyam Gupta
    Shyam Gupta
    7,757 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    1 Answer

  • Justin Houghton
    Justin Houghton
    4,560 Points

    Error using setTimeout () in Workspace console

    Posted July 27, 2017 5:44am by Justin Houghton
    Justin Houghton
    4,560 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    2 Answers

  • Leslie Wolfe
    Leslie Wolfe
    8,700 Points

    getting a "window.setTimeout is not a function" error in the console.

    Posted July 26, 2017 5:34pm by Leslie Wolfe
    Leslie Wolfe
    8,700 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    3 Answers

  • Peter Larson
    Peter Larson
    6,412 Points

    How does the code know the text string is supposed to be passed into console.log?

    Posted June 3, 2017 1:22am by Peter Larson
    Peter Larson
    6,412 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    2 Answers

  • Tim Morgan
    Tim Morgan
    9,392 Points

    Recursion

    Posted February 6, 2017 12:02pm by Tim Morgan
    Tim Morgan
    9,392 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    5 Answers

  • Richard Hriech
    Richard Hriech
    12,001 Points

    Am I the only one who thinks anonymous functions are harder to read? I usually try to avoid using them.

    Posted January 6, 2017 11:32pm by Richard Hriech
    Richard Hriech
    12,001 Points
    • JavaScript
    • JavaScript and the DOM (Retiring)
    • Responding to User Interaction
    • Delaying Execution with setTimeout()

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.