Intro to JavaScript - Functions | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Intro to JavaScript - Functions

When doing the functions practice, I put in what is in the solution; but it still comes back wrong. Any help? function welcome(){ let name = readLine(); //rediseña la función console.log('Welcome, user'); } //call the function --------------------------------------------------------------------- function welcome(){ let name = readLine(); //rediseña la función console.log('Welcome, ${name}'); } //call the function welcome(); --------------------------------------------------------------------- UPDATE: Got it, I was using ' and not `

7th Dec 2022, 10:41 PM
Donald Goins
2 Answers
0
function welcome(){ let name = readLine(); console.log('Welcome ' + name ); } welcome();
7th Dec 2022, 11:14 PM
Minhaj Azeem
Minhaj Azeem - avatar
0
function welcome(){ let name = readLine(); //rediseña la función console.log('Welcome,' + name); } //call the function welcome(); Still said it failed. I think there might be something wrong with the lesson.
7th Dec 2022, 11:55 PM
Donald Goins