JavaScript Developer — Medium
Key points
- The async function foo() returns a Promise object.
- The value 42 is wrapped inside the Promise object.
- The console.log() statement displays the Promise object with the value 42.
Ready to go further?
Related questions
