JS
challenger
Home
JavaScript Basics
strings
Repeat a Word Twice
Repeat a Word Twice
Given a string, concatenate it with itself using the + operator and store the result in a variable named doubled.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console