The following code throws an error in the browser console
sayHello(firstName, lastName){
let msg = "Greetings ";
function intro(){
return
msg + firstName = " " + lastName;
}
return into();
}
sayHello("Professor" , "Falken");
//returns "Greetings Professor Falken";
After the comment lines is what should come out. However an error is declared, indicating that the first key is an unexpected token. I need an explanation to correct the code.