JS
challenger
Home
Intermediate JavaScript
scope
Correctly update global variable from within block
Correctly update global variable from within block
Adjust the code such that the logged value of
x
is 30.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console