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 `
2 Respostas
0
function welcome(){
let name = readLine();
console.log('Welcome ' + name );
}
welcome();
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.