JS
challenger
Home
JavaScript Basics
strings
Connect Javascript strings (3)
Connect Javascript strings (3)
A template literal has been created with backticks, but the term
1+1
is not wrapped correctly. Adjust the code so that
1+1
is evaluated and the result is inserted into the string.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console