Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6045815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:10:00+00:00 2026-05-23T07:10:00+00:00

When I call set timeout it returns a number, for example > setTimeout(function(){ console.log(‘done’);

  • 0

When I call set timeout it returns a number, for example

> setTimeout(function(){ console.log('done'); },1000);
4431
"done"

I know that I can use this number to call clearTimeout() but what does this number represent internally?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:10:01+00:00Added an answer on May 23, 2026 at 7:10 am

    It doesn’t matter what it represents. It could be an address in memory, or an index into an array, or the National ID # of the programmer who wrote the interpreter + offset.

    You don’t care. You better not care. Whatever it corresponds to today, internally on one particular browser / JS environment, it could well mean something else tomorrow somewhere else.

    All you need to know is that this number corresponds to your timer. If you need to do something to your timer later on, you’ll want that number, so keep it safe. When the timer is dead, throw it away and never think of it again.


    If you’re interested in some slightly-gritty details, see the spec for the list of active timeouts – there’s no requirement that the number (the handle) represents anything internally, merely that it can be used to reliably identify a specific timer.

    If you’re interested in some really gritty details, download the source for your favorite browser and go to town…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering how can I set a timeout on a socket_read call? The
I am trying to call a setTimeout from within a setInterval callback: function callback()
Possible Duplicate: How can I pre-set arguments in JavaScript function call? (Partial Function Application)
Linux provides the stime(2) call to set the system time. However, while this will
How do you set up IIS so that you can call python scripts from
I'm trying to call a web service in an Excel Macro: Set objHTTP =
I'd like to call Update ... Set ... Where ... to update a field
I call my JavaScript function. Why do I sometimes get the error 'myFunction is
I'm trying to set up a blocking socket to timeout after 16 ms of
In Javascript we can declare a variable and we can call a function. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.