JS
challenger
Home
JavaScript Basics
functions I
Add the Missing Function Name
Add the Missing Function Name
The following code defines a function declaration, but it is missing its name. Add the missing function name so that it can be called and the result will be logged correctly.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console