JS
challenger
Home
JavaScript Basics
asynchronous javascript
Correctly use callback function
Correctly use callback function
Here we pass a function as argument to getValue. However, we do not use it yet. Use the callback function so that the value 5 is logged.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console