JS
challenger
Home
JavaScript Basics
asynchronous javascript
Execute the code synchronously
Execute the code synchronously
Adjust the code snippet so that the console.log statement logs the value 2.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console