---
title: "Meaning & Key Takeaway of: an important thing to know about…"
description: "\"“an important thing to know about JavaScript: there’s one queue and one “thread of control,” meaning there is only one of me going through the events o..."
image: "https://sms4smile.com/quotes/i/f34/eric-freeman-7573_queue_an-important-thing-to-know-about-javascr_3088703.jpg"
---

#  an important thing to know about JavaScript: there’s one…

![“an important thing to know about JavaScript: there’s one queue and one “thread of control,” meaning there is only one of me going through the events one at a time.” quote by Eric Freeman](https://sms4smile.com/quotes/i/f34/eric-freeman-7573_queue_an-important-thing-to-know-about-javascr_3088703.jpg)   [Download](https://sms4smile.com/quotes/i/f34/eric-freeman-7573_queue_an-important-thing-to-know-about-javascr_3088703.jpg) [Open image](https://sms4smile.com/quotes/i/f34/eric-freeman-7573_queue_an-important-thing-to-know-about-javascr_3088703.jpg)

> ““an important thing to know about JavaScript: there’s one queue and one “thread of control,” meaning there is only one of me going through the events one at a time.””

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

## About This Quote

This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.

JavaScript runs on a single event loop, processing one event at a time in a single thread of execution.

**In simple terms:** Only one event loop processes events sequentially.

Key Takeaway

Understand the single‑threaded nature when debugging.

Themes

programming asynchrony event loops

Mood

technical analytical

Type

educational informative

When to use this quote

- web development
- UI responsiveness
- debugging asynchronous code
- performance tuning

Key Concepts

JavaScript runtime concurrency model

Questions to Reflect On

- How does the event loop affect UI responsiveness?
- When should you offload work to a worker?

A Different Perspective

Complex tasks may need Web Workers for true parallelism.

★ ★ ★ ★ ★   No ratings yet

[Queue](https://sms4smile.com/quotes/about/queue/) [Technology](https://sms4smile.com/quotes/about/technology/) [Time](https://sms4smile.com/quotes/about/time/)

## Related quotes

> [“Well, say you write a handler and it requires a lot of computation — that is, something that takes a long time to compute.…](https://sms4smile.com/quotes/eric-freeman/well-say-you-write-a-handler-and-it-requires-a-lot-of-computation/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“JavaScript: When an event occurs, like the ones you’ve mentioned, that event is added to a queue. I don’t even look at it until I’ve…](https://sms4smile.com/quotes/eric-freeman/javascript-when-an-event-occurs-like-the-ones-you-ve-mentioned-that/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [You should have something to say, an idea you want to get out, and if you don't, just get out of the way, 'cause…](https://sms4smile.com/quotes/paolo-nutini/you-should-have-something-to-say-an-idea-you-want-to-get-out-and-if/)

[Paolo Nutini](https://sms4smile.com/quotes/author/paolo-nutini/)

> [How in heck are they handling their surplus population in Hell these days? Maybe by the time you and I are in the queue…](https://sms4smile.com/quotes/malcolm-forbes/how-in-heck-are-they-handling-their-surplus-population-in-hell-these/)

[Malcolm Forbes](https://sms4smile.com/quotes/author/malcolm-forbes/)

> [I'm privileged to have had some success, but I've never forgotten what it was like to queue for a half-crown gallery seat for 'Oliver!'…](https://sms4smile.com/quotes/cameron-mackintosh/i-m-privileged-to-have-had-some-success-but-i-ve-never-forgotten-what/)

[Cameron Mackintosh](https://sms4smile.com/quotes/author/cameron-mackintosh/)

> [I can only please one person per day… Today is not your day, and tomorrow doesn't look good either… take a number and join…](https://sms4smile.com/quotes/anonymous/i-can-only-please-one-person-per-day-today-is-not-your-day-and-2/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [A queue doesn't necessarily imply order and good manners among our fellow men. Usually it's just down to poor organisation, under-staffing and hopeless service…](https://sms4smile.com/quotes/julia-hartley-brewer/a-queue-doesn-t-necessarily-imply-order-and-good-manners-among-our/)

[Julia Hartley-Brewer](https://sms4smile.com/quotes/author/julia-hartley-brewer/)

> [The truth is that a willingness to queue is no longer the mark of a true Englishman or woman. It's what you do when…](https://sms4smile.com/quotes/julia-hartley-brewer/the-truth-is-that-a-willingness-to-queue-is-no-longer-the-mark-of-a/)

[Julia Hartley-Brewer](https://sms4smile.com/quotes/author/julia-hartley-brewer/)

> [Celebrity has some amazing advantages, of course it does. You're given an extraordinary power. It's a door-opener. I might not have to queue for…](https://sms4smile.com/quotes/geri-halliwell/celebrity-has-some-amazing-advantages-of-course-it-does-you-re-given/)

[Geri Halliwell](https://sms4smile.com/quotes/author/geri-halliwell/)

> [I cry at everything, even the length of the queue at Sainsbury's.](https://sms4smile.com/quotes/arabella-weir/i-cry-at-everything-even-the-length-of-the-queue-at-sainsbury-s/)

[Arabella Weir](https://sms4smile.com/quotes/author/arabella-weir/)

> [My dad took me for an audition once, to show me, OK, you want to be a child actor, this is what its like.…](https://sms4smile.com/quotes/emilia-clarke/my-dad-took-me-for-an-audition-once-to-show-me-ok-you-want-to-be-a/)

[Emilia Clarke](https://sms4smile.com/quotes/author/emilia-clarke/)

> [“he had the ability to appear in the background, even if he was standing at the front of a queue.”](https://sms4smile.com/quotes/markus-zusak/he-had-the-ability-to-appear-in-the-background-even-if-he-was/)

[Markus Zusak](https://sms4smile.com/quotes/author/markus-zusak/)

> [Waiting is so unusual that many of us can't stand in a queue for 30 seconds without getting out our phones to check for…](https://sms4smile.com/quotes/julian-baggini/waiting-is-so-unusual-that-many-of-us-can-t-stand-in-a-queue-for-30/)

[Julian Baggini](https://sms4smile.com/quotes/author/julian-baggini/)

> [“Make sure you take lots of pictures, and if you come back using words like 'queue' or 'lorry', I'll be very upset.”](https://sms4smile.com/quotes/rachel-hawkins/make-sure-you-take-lots-of-pictures-and-if-you-come-back-using-words/)

[Rachel Hawkins](https://sms4smile.com/quotes/author/rachel-hawkins/)

> [Perhaps we've time to have a look at the Number Thirty-One bus queue before we turn in.](https://sms4smile.com/quotes/calvin-trillin/perhaps-we-ve-time-to-have-a-look-at-the-number-thirty-one-bus-queue/)

[Calvin Trillin](https://sms4smile.com/quotes/author/calvin-trillin/)

## More by Eric Freeman

> [“When you delete a property, you’re not just deleting the value of the property, you’re deleting the property itself. And, if you try to…](https://sms4smile.com/quotes/eric-freeman/when-you-delete-a-property-you-re-not-just-deleting-the-value-of-the/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“the constructor always has a prototype property. More”](https://sms4smile.com/quotes/eric-freeman/the-constructor-always-has-a-prototype-property-more/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“when you assign a value to a variable name that hasn’t been previously declared, it is treated as a new, global variable. So be…](https://sms4smile.com/quotes/eric-freeman/when-you-assign-a-value-to-a-variable-name-that-hasn-t-been/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“Web Workers have a global function named importScripts that you can use to import one or more JavaScript files into your worker. To”](https://sms4smile.com/quotes/eric-freeman/web-workers-have-a-global-function-named-importscripts-that-you-can/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“If the two values have different types, try to convert them into the same type and then compare them”](https://sms4smile.com/quotes/eric-freeman/if-the-two-values-have-different-types-try-to-convert-them-into-the/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“Well, it’s a browser policy, and it says you can’t retrieve data from a domain that is different from the domain the page itself…](https://sms4smile.com/quotes/eric-freeman/well-it-s-a-browser-policy-and-it-says-you-can-t-retrieve-data-from-a/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“Math is not a constructor, or even a function. It’s an object. As you know, Math is a built-in object that you can use…](https://sms4smile.com/quotes/eric-freeman/math-is-not-a-constructor-or-even-a-function-it-s-an-object-as-you/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“When you pass zero to setTimeout, you’re asking JavaScript to run your timeout handler as soon as it possibly can — and this leads…](https://sms4smile.com/quotes/eric-freeman/when-you-pass-zero-to-settimeout-you-re-asking-javascript-to-run-your/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“JavaScript doesn’t have a character type. So characters are returned as new strings containing one character.”](https://sms4smile.com/quotes/eric-freeman/javascript-doesn-t-have-a-character-type-so-characters-are-returned/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“Closures are often used to capture state for event handlers.”](https://sms4smile.com/quotes/eric-freeman/closures-are-often-used-to-capture-state-for-event-handlers/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“Lexical scope means that we can determine the scope of a variable by reading our code.”](https://sms4smile.com/quotes/eric-freeman/lexical-scope-means-that-we-can-determine-the-scope-of-a-variable-by/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“Q: Q: You said getElementsByTagName returns a list. Do you mean an array? A: A: It returns an object that you can treat like…](https://sms4smile.com/quotes/eric-freeman/q-q-you-said-getelementsbytagname-returns-a-list-do-you-mean-an-array/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“the truth is JavaScript actually makes two passes over your page: in the first pass it reads all the function definitions, and in the…](https://sms4smile.com/quotes/eric-freeman/the-truth-is-javascript-actually-makes-two-passes-over-your-page-in/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“If you change any property in the prototype, it affects all the objects that inherit from that prototype, unless that object has overridden that…](https://sms4smile.com/quotes/eric-freeman/if-you-change-any-property-in-the-prototype-it-affects-all-the/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [“methods in objects are properties too. They just happen to have a function assigned to them.”](https://sms4smile.com/quotes/eric-freeman/methods-in-objects-are-properties-too-they-just-happen-to-have-a/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

[Explore all 90 Eric Freeman quotes ](https://sms4smile.com/quotes/author/eric-freeman/)

## More Queue quotes

> [Perhaps we've time to have a look at the Number Thirty-One bus queue before we turn in.](https://sms4smile.com/quotes/calvin-trillin/perhaps-we-ve-time-to-have-a-look-at-the-number-thirty-one-bus-queue/)

[Calvin Trillin](https://sms4smile.com/quotes/author/calvin-trillin/)

> [“Make sure you take lots of pictures, and if you come back using words like 'queue' or 'lorry', I'll be very upset.”](https://sms4smile.com/quotes/rachel-hawkins/make-sure-you-take-lots-of-pictures-and-if-you-come-back-using-words/)

[Rachel Hawkins](https://sms4smile.com/quotes/author/rachel-hawkins/)

> [Waiting is so unusual that many of us can't stand in a queue for 30 seconds without getting out our phones to check for…](https://sms4smile.com/quotes/julian-baggini/waiting-is-so-unusual-that-many-of-us-can-t-stand-in-a-queue-for-30/)

[Julian Baggini](https://sms4smile.com/quotes/author/julian-baggini/)

> [“he had the ability to appear in the background, even if he was standing at the front of a queue.”](https://sms4smile.com/quotes/markus-zusak/he-had-the-ability-to-appear-in-the-background-even-if-he-was/)

[Markus Zusak](https://sms4smile.com/quotes/author/markus-zusak/)

> [“JavaScript: When an event occurs, like the ones you’ve mentioned, that event is added to a queue. I don’t even look at it until I’ve…](https://sms4smile.com/quotes/eric-freeman/javascript-when-an-event-occurs-like-the-ones-you-ve-mentioned-that/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

> [My dad took me for an audition once, to show me, OK, you want to be a child actor, this is what its like.…](https://sms4smile.com/quotes/emilia-clarke/my-dad-took-me-for-an-audition-once-to-show-me-ok-you-want-to-be-a/)

[Emilia Clarke](https://sms4smile.com/quotes/author/emilia-clarke/)

> [I cry at everything, even the length of the queue at Sainsbury's.](https://sms4smile.com/quotes/arabella-weir/i-cry-at-everything-even-the-length-of-the-queue-at-sainsbury-s/)

[Arabella Weir](https://sms4smile.com/quotes/author/arabella-weir/)

> [Celebrity has some amazing advantages, of course it does. You're given an extraordinary power. It's a door-opener. I might not have to queue for…](https://sms4smile.com/quotes/geri-halliwell/celebrity-has-some-amazing-advantages-of-course-it-does-you-re-given/)

[Geri Halliwell](https://sms4smile.com/quotes/author/geri-halliwell/)

> [The truth is that a willingness to queue is no longer the mark of a true Englishman or woman. It's what you do when…](https://sms4smile.com/quotes/julia-hartley-brewer/the-truth-is-that-a-willingness-to-queue-is-no-longer-the-mark-of-a/)

[Julia Hartley-Brewer](https://sms4smile.com/quotes/author/julia-hartley-brewer/)

> [A queue doesn't necessarily imply order and good manners among our fellow men. Usually it's just down to poor organisation, under-staffing and hopeless service…](https://sms4smile.com/quotes/julia-hartley-brewer/a-queue-doesn-t-necessarily-imply-order-and-good-manners-among-our/)

[Julia Hartley-Brewer](https://sms4smile.com/quotes/author/julia-hartley-brewer/)

> [I can only please one person per day… Today is not your day, and tomorrow doesn't look good either… take a number and join…](https://sms4smile.com/quotes/anonymous/i-can-only-please-one-person-per-day-today-is-not-your-day-and-2/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [I'm privileged to have had some success, but I've never forgotten what it was like to queue for a half-crown gallery seat for 'Oliver!'…](https://sms4smile.com/quotes/cameron-mackintosh/i-m-privileged-to-have-had-some-success-but-i-ve-never-forgotten-what/)

[Cameron Mackintosh](https://sms4smile.com/quotes/author/cameron-mackintosh/)

> [How in heck are they handling their surplus population in Hell these days? Maybe by the time you and I are in the queue…](https://sms4smile.com/quotes/malcolm-forbes/how-in-heck-are-they-handling-their-surplus-population-in-hell-these/)

[Malcolm Forbes](https://sms4smile.com/quotes/author/malcolm-forbes/)

> [You should have something to say, an idea you want to get out, and if you don't, just get out of the way, 'cause…](https://sms4smile.com/quotes/paolo-nutini/you-should-have-something-to-say-an-idea-you-want-to-get-out-and-if/)

[Paolo Nutini](https://sms4smile.com/quotes/author/paolo-nutini/)

> [“Well, say you write a handler and it requires a lot of computation — that is, something that takes a long time to compute.…](https://sms4smile.com/quotes/eric-freeman/well-say-you-write-a-handler-and-it-requires-a-lot-of-computation/)

[Eric Freeman](https://sms4smile.com/quotes/author/eric-freeman/)

[Browse all 30 Queue quotes ](https://sms4smile.com/quotes/about/queue/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "“an important thing to know about JavaScript: there’s one queue and one “thread of control,” meaning there is only one of me going through the events one at a time.”",
            "creator": {
                "@type": "Person",
                "name": "Eric Freeman"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/eric-freeman/an-important-thing-to-know-about-javascript-there-s-one-queue-and-one/",
            "about": {
                "@type": "Thing",
                "name": "Queue"
            },
            "@id": "https://sms4smile.com/quotes/eric-freeman/an-important-thing-to-know-about-javascript-there-s-one-queue-and-one/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/f34/eric-freeman-7573_queue_an-important-thing-to-know-about-javascr_3088703.jpg",
                "contentUrl": "https://sms4smile.com/quotes/i/f34/eric-freeman-7573_queue_an-important-thing-to-know-about-javascr_3088703.jpg",
                "url": "https://sms4smile.com/quotes/i/f34/eric-freeman-7573_queue_an-important-thing-to-know-about-javascr_3088703.jpg",
                "width": 1080,
                "height": 1080,
                "caption": "“an important thing to know about JavaScript: there’s one queue and one “thread of control,” meaning there is…” — Eric Freeman",
                "creditText": "SMS4Smile Quotes",
                "creator": {
                    "@id": "https://sms4smile.com/quotes/#organization"
                }
            }
        },
        {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://sms4smile.com/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Quotes",
                    "item": "https://sms4smile.com/quotes/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "Eric Freeman",
                    "item": "https://sms4smile.com/quotes/author/eric-freeman/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "“an important thing to know about...",
                    "item": "https://sms4smile.com/quotes/eric-freeman/an-important-thing-to-know-about-javascript-there-s-one-queue-and-one/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/eric-freeman/an-important-thing-to-know-about-javascript-there-s-one-queue-and-one/#breadcrumb"
        },
        {
            "@type": "WebSite",
            "@id": "https://sms4smile.com/quotes/#website",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "publisher": {
                "@id": "https://sms4smile.com/quotes/#organization"
            }
        },
        {
            "@type": "Organization",
            "@id": "https://sms4smile.com/quotes/#organization",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "logo": {
                "@type": "ImageObject",
                "url": "https://sms4smile.com/quotes/wp-content/themes/sq/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            }
        }
    ]
}
```
