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

New No-Code Track! 🚀 New videos dropping every week—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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • David Shulkin
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    David Shulkin
    Front End Web Development Techdegree Student 10,255 Points

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

    Posted January 3, 2023 3:34am by David Shulkin
    .a{fill-rule:evenodd;}techdegree
    David Shulkin
    Front End Web Development Techdegree Student 10,255 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,135 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,135 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,135 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,135 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.

    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.