JS
challenger
Home
JavaScript Basics
asynchronous javascript
Correctly resolve promise
Correctly resolve promise
The Promise below is not correctly resolved. Fix the mistake such that the then() handler logs the resolved value.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console