Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • David Chemrukov
    seal-mask
    PLUS
    .a{fill-rule:evenodd;}techdegree seal-36
    David Chemrukov
    Front End Web Development Techdegree Graduate 13,309 Points

    internal/modules/cjs/loader.js:888 throw err

    Posted January 3, 2023 3:34am by David Chemrukov
    .a{fill-rule:evenodd;}techdegree seal-36
    David Chemrukov
    Front End Web Development Techdegree Graduate 13,309 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    1 Answer

  • Marni Ali
    Marni Ali
    4,642 Points

    keep getting throw error in console..

    Posted April 14, 2022 8:52am by Marni Ali
    Marni Ali
    4,642 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    3 Answers

  • karan Badhwar
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,136 Points

    Do i need to remember this ?

    Posted February 20, 2022 8:06am by karan Badhwar
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,136 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    5 Answers

  • karan Badhwar
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,136 Points

    Is promise is an API

    Posted February 20, 2022 7:08am by karan Badhwar
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,136 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    1 Answer

  • Chike Onyema
    Chike Onyema
    6,190 Points

    Error: "resolve not defined"

    Posted January 19, 2022 11:51pm by Chike Onyema
    Chike Onyema
    6,190 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    2 Answers

  • Jesus Olaiz
    Jesus Olaiz
    9,210 Points

    Im confused on how the callbacks are working here

    Posted December 30, 2021 2:03am by Jesus Olaiz
    Jesus Olaiz
    9,210 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    1 Answer

  • Daniel Ahn
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Daniel Ahn
    Front End Web Development Techdegree Student 8,575 Points

    Console in Treehouse workspace does not work--why? I typed: node js/promises-breakfast.js. Nothing happened.

    Posted August 13, 2021 3:46pm by Daniel Ahn
    .a{fill-rule:evenodd;}techdegree
    Daniel Ahn
    Front End Web Development Techdegree Student 8,575 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    0 Answers

  • Kylie Soderblom
    Kylie Soderblom
    3,890 Points

    breakfastPromise.then(val => console.log(val) ) Is this a shorthand version of a function inside a method?

    Posted May 6, 2021 11:31pm by Kylie Soderblom
    Kylie Soderblom
    3,890 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    1 Answer

  • Austin Schneider
    Austin Schneider
    4,919 Points

    Terminal says pending, but after changes won't resolve and show message.

    Posted March 17, 2021 3:10am by Austin Schneider
    Austin Schneider
    4,919 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    2 Answers

  • Edelweiss Villoria
    Edelweiss Villoria
    4,801 Points

    What's a parameter?

    Posted March 16, 2021 12:56pm by Edelweiss Villoria
    Edelweiss Villoria
    4,801 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    1 Answer

  • Rick S
    Rick S
    11,273 Points

    Can I add code to this that will allow me will output the status as <resolved> the way it does <pending>?

    Posted February 22, 2021 7:35pm by Rick S
    Rick S
    11,273 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    6 Answers

  • Cody Tapp
    Cody Tapp
    9,667 Points

    Receiving an error in workspace console. Cannot find module.

    Posted September 16, 2020 12:34am by Cody Tapp
    Cody Tapp
    9,667 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    3 Answers

  • Jasper Kop
    Jasper Kop
    10,423 Points

    Why is the text from resolve displayed by the val function?

    Posted August 31, 2020 6:45am by Jasper Kop
    Jasper Kop
    10,423 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    3 Answers

  • Roald Jurrian Kamman
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Roald Jurrian Kamman
    Front End Web Development Techdegree Graduate 15,544 Points

    is val a keyword or is the arrow function pointing at itself? Arrow function syntax looks weird.

    Posted February 24, 2020 10:11pm by Roald Jurrian Kamman
    .a{fill-rule:evenodd;}techdegree seal-36
    Roald Jurrian Kamman
    Front End Web Development Techdegree Graduate 15,544 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    1 Answer

  • Daven Hietala
    Daven Hietala
    8,040 Points

    $ node promises-breakfast.js internal/modules/cjs/loader.js:638 throw err; ^

    Posted August 27, 2019 2:41am by Daven Hietala
    Daven Hietala
    8,040 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    3 Answers

  • Daven Hietala
    Daven Hietala
    8,040 Points

    How do I set up the terminal within VS Code to work like Guil's terminal?

    Posted August 26, 2019 9:26pm by Daven Hietala
    Daven Hietala
    8,040 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    8 Answers

  • <noob />
    <noob />
    17,063 Points

    I cant run the promises-breakfast.js file with node

    Posted August 24, 2019 5:34pm by <noob />
    <noob />
    17,063 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    5 Answers

  • vamosrope14
    vamosrope14
    14,932 Points

    So basically the callback function inside promise has callback functions as arguements, resolve and reject?

    Posted July 12, 2019 6:30pm by vamosrope14
    vamosrope14
    14,932 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    2 Answers

  • gerardo keys
    gerardo keys
    14,292 Points

    Seems better with jQuery ajax call

    Posted May 10, 2019 10:07pm by gerardo keys
    gerardo keys
    14,292 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise

    2 Answers

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

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord