• Home
  • Free Trial
  • Sign In
  • Techdegree
  • Tracks
  • Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • karan karan
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    karan karan
    Web Development Techdegree Student 12,796 Points

    TimeoutID

    Posted February 1, 2022 8:31pm by karan karan
    .a{fill-rule:evenodd;}techdegree
    karan karan
    Web Development Techdegree Student 12,796 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using a One-Off Timer with setTimeout

    1 Answer

  • Samantha Atkinson
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Samantha Atkinson
    Front End Web Development Techdegree Student 34,844 Points

    Why can't I give setInterval function a delay time of 0/zero.

    Posted November 29, 2021 12:33pm by Samantha Atkinson
    .a{fill-rule:evenodd;}techdegree
    Samantha Atkinson
    Front End Web Development Techdegree Student 34,844 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using Anonymous Functions with setInterval

    2 Answers

  • Samantha Atkinson
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Samantha Atkinson
    Front End Web Development Techdegree Student 34,844 Points

    Why do we not use Math.floor with Math.random to get a integer number?

    Posted November 26, 2021 1:04pm by Samantha Atkinson
    .a{fill-rule:evenodd;}techdegree
    Samantha Atkinson
    Front End Web Development Techdegree Student 34,844 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using a One-Off Timer with setTimeout

    1 Answer

  • chelseacheevers
    chelseacheevers
    13,665 Points

    Just Thankful

    Posted August 10, 2021 7:38pm by chelseacheevers
    chelseacheevers
    13,665 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using Anonymous Functions with setInterval

    0 Answers

  • Alonzo Delk
    Alonzo Delk
    6,991 Points

    Cl

    Posted June 7, 2021 11:47pm by Alonzo Delk
    Alonzo Delk
    6,991 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Triggering an Animation

    0 Answers

  • Reginald Golden
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Reginald Golden
    Front End Web Development Techdegree Student 9,538 Points

    Code Challenge: Triggering an Animation

    Posted March 1, 2021 5:51pm by Reginald Golden
    .a{fill-rule:evenodd;}techdegree
    Reginald Golden
    Front End Web Development Techdegree Student 9,538 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Triggering an Animation

    1 Answer

  • Brendan Dzeguze
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Brendan Dzeguze
    Front End Web Development Techdegree Graduate 14,567 Points

    my code returns with "unexpected token:2 (3:33)". why is this happening?

    Posted December 2, 2020 9:46pm by Brendan Dzeguze
    .a{fill-rule:evenodd;}techdegree seal-36
    Brendan Dzeguze
    Front End Web Development Techdegree Graduate 14,567 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Triggering an Animation

    1 Answer

  • Elizabeth Eymann
    Elizabeth Eymann
    12,196 Points

    Add a clock image?

    Posted October 2, 2020 10:06pm by Elizabeth Eymann
    Elizabeth Eymann
    12,196 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using a Repeat Timer with setInterval

    1 Answer

  • Ryan Soeder
    Ryan Soeder
    11,056 Points

    setTimeout() loop inside function?

    Posted September 16, 2020 5:30pm by Ryan Soeder
    Ryan Soeder
    11,056 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using a Repeat Timer with setInterval

    1 Answer

  • Lloyd Cox
    Lloyd Cox
    19,952 Points

    Is there a bug?

    Posted July 28, 2020 5:51am by Lloyd Cox
    Lloyd Cox
    19,952 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Triggering an Animation

    3 Answers

  • jlampstack
    jlampstack
    23,917 Points

    Another Approach using IIFE

    Posted May 7, 2020 7:31pm by jlampstack
    jlampstack
    23,917 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using Anonymous Functions with setInterval

    1 Answer

  • Tyree Mack
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Tyree Mack
    Full Stack JavaScript Techdegree Student 3,385 Points

    Triggering an Animation

    Posted February 14, 2020 2:13am by Tyree Mack
    .a{fill-rule:evenodd;}techdegree
    Tyree Mack
    Full Stack JavaScript Techdegree Student 3,385 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Triggering an Animation

    1 Answer

  • Unsubscribed User
    Unsubscribed User
    6,269 Points

    What ${...} means?

    Posted November 28, 2019 10:23am by Unsubscribed User
    Unsubscribed User
    6,269 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using a Repeat Timer with setInterval

    2 Answers

  • Kit Fung Eman Law
    PLUS
    Kit Fung Eman Law
    Courses Plus Student 2,385 Points

    Unable to pass the quiz

    Posted August 21, 2019 10:01am by Kit Fung Eman Law
    Kit Fung Eman Law
    Courses Plus Student 2,385 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Triggering an Animation

    1 Answer

  • Nick Burton
    Nick Burton
    7,387 Points

    How to run setInterval() with dynamic delay value

    Posted July 25, 2019 12:26pm by Nick Burton
    Nick Burton
    7,387 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using Anonymous Functions with setInterval

    2 Answers

  • Amandeep Pasricha
    Amandeep Pasricha
    14,932 Points

    Why do we not put brackets next to callback functions again? It is because the function is invoking it and not us?

    Posted July 11, 2019 7:10pm by Amandeep Pasricha
    Amandeep Pasricha
    14,932 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using a One-Off Timer with setTimeout

    2 Answers

  • Christian Higgins
    Christian Higgins
    15,758 Points

    Below is a way to not name a function variable, but is it a best practice?

    Posted March 17, 2019 9:01pm by Christian Higgins
    Christian Higgins
    15,758 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using Anonymous Functions with setInterval

    1 Answer

  • Ran Wang
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ran Wang
    Full Stack JavaScript Techdegree Graduate 32,191 Points

    How can we tape the icons as shown in the video into our texteditor? Thanks in advance

    Posted March 10, 2019 5:47pm by Ran Wang
    .a{fill-rule:evenodd;}techdegree seal-36
    Ran Wang
    Full Stack JavaScript Techdegree Graduate 32,191 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using a One-Off Timer with setTimeout

    1 Answer

  • Julien Arseneau
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Julien Arseneau
    Full Stack JavaScript Techdegree Student 5,200 Points

    Can someone tell me what is wrong with my code?

    Posted July 21, 2018 10:10pm by Julien Arseneau
    .a{fill-rule:evenodd;}techdegree
    Julien Arseneau
    Full Stack JavaScript Techdegree Student 5,200 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Triggering an Animation

    2 Answers

  • Saud Tauqeer
    PLUS
    Saud Tauqeer
    Courses Plus Student 8,099 Points

    Line number 3 of the code from the video. need some help. thank you

    Posted July 6, 2018 11:09pm by Saud Tauqeer
    Saud Tauqeer
    Courses Plus Student 8,099 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using a Repeat Timer with setInterval

    1 Answer

  • ammarkhan
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points

    Why didn't we use getTime in setInterval?

    Posted March 10, 2018 12:06pm by ammarkhan
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using Anonymous Functions with setInterval

    1 Answer

  • María Violeta
    María Violeta
    6,565 Points

    this is the code that i wrote : setTimeOut (startAnimation , 2000); can someone tell me what is wrong? thanks!

    Posted December 11, 2017 5:09pm by María Violeta
    María Violeta
    6,565 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Triggering an Animation

    2 Answers

  • Akash Sharma
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Akash Sharma
    Full Stack JavaScript Techdegree Student 14,147 Points

    What is the difference between anonymous function and a variable statement with function expression?

    Posted November 3, 2017 5:26pm by Akash Sharma
    .a{fill-rule:evenodd;}techdegree
    Akash Sharma
    Full Stack JavaScript Techdegree Student 14,147 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using Anonymous Functions with setInterval

    2 Answers

  • MARIA Quadri
    MARIA Quadri
    2,572 Points

    CallBack function : Please help me to solve this problem

    Posted October 19, 2017 1:36am by MARIA Quadri
    MARIA Quadri
    2,572 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Triggering an Animation

    1 Answer

  • Mubaraka Parekh
    Mubaraka Parekh
    2,406 Points

    Added setInterval(startAnimation, 2000); Error: startAnimation should be called only once.

    Posted September 26, 2017 7:24pm by Mubaraka Parekh
    Mubaraka Parekh
    2,406 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Triggering an Animation

    2 Answers

  • Heidi S Wolff
    Heidi S Wolff
    12,757 Points

    Triggering an Animation-Callback Functions in JavaScript

    Posted August 19, 2017 10:11pm by Heidi S Wolff
    Heidi S Wolff
    12,757 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Triggering an Animation

    1 Answer

  • Martin Larsen
    Martin Larsen
    9,839 Points

    Set start point for clock and count up

    Posted July 31, 2017 12:13pm by Martin Larsen
    Martin Larsen
    9,839 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using a Repeat Timer with setInterval

    1 Answer

  • Sjoerd Vermeijden
    Sjoerd Vermeijden
    5,840 Points

    Why would i want to use an anonymous function over a named function?

    Posted July 26, 2017 7:44pm by Sjoerd Vermeijden
    Sjoerd Vermeijden
    5,840 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using Anonymous Functions with setInterval

    2 Answers

  • Sridhar Kasukhela
    Sridhar Kasukhela
    449 Points

    Asynchronous execution of callback?

    Posted July 22, 2017 7:05am by Sridhar Kasukhela
    Sridhar Kasukhela
    449 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Using Anonymous Functions with setTimeout

    3 Answers

  • Cristian Gerardo Hernandez Barrios
    Cristian Gerardo Hernandez Barrios
    28,382 Points

    We have a function startAnimation. The startAnimation function should be triggered 2 seconds after the page loads. Updat

    Posted July 19, 2017 3:59pm by Cristian Gerardo Hernandez Barrios
    Cristian Gerardo Hernandez Barrios
    28,382 Points
    • JavaScript
    • Callback Functions in JavaScript
    • Callbacks with Timers
    • Triggering an Animation

    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

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

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

  • Perks
  • Treehouse for Libraries
  • Treehouse for Teams
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2022 Treehouse Island, Inc.