0

JavaScript functions?/

One JavaScript question is giving me the wrong output even though I copied the solutIon exactly? Can anyone tell me what’s wrong with this? function welcome(){ let name = readLine(); //rediseña la funciĂłn console.log('Welcome, ${name}'); } //call the function welcome(); Output comes out as Welcome, ${name}

2nd Dec 2022, 3:18 PM
Max Streather
Max Streather - avatar
1 Answer
+ 2
Max Streather, replace the single quotes with backticks (`Welcome, ${name}`).
2nd Dec 2022, 3:49 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar