• Home
  • Free Trial
  • Sign In
  • Plans
  • 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
  • chelseacheevers
    chelseacheevers
    13,786 Points

    Complete the code by writing the method that gets the resolved value out of the promise returned by dataPromise.

    Posted August 9, 2021 5:17pm by chelseacheevers
    chelseacheevers
    13,786 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise Review

    1 Answer

  • Welcome Julius
    Welcome Julius
    9,076 Points

    const dataPromise = new (); i need help with this

    Posted August 8, 2020 3:29pm by Welcome Julius
    Welcome Julius
    9,076 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise Review

    2 Answers

  • Thomas Ma
    Thomas Ma
    15,199 Points

    dataPromise .( data => console.log(data) )

    Posted July 28, 2020 2:36am by Thomas Ma
    Thomas Ma
    15,199 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise Review

    1 Answer

  • Thomas Ma
    Thomas Ma
    15,199 Points

    const dataPromise = new ();

    Posted July 28, 2020 1:27am by Thomas Ma
    Thomas Ma
    15,199 Points
    • JavaScript
    • Asynchronous Programming with JavaScript
    • Understanding Promises
    • Create a Promise Review

    0 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
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.