Function recap #11


var nameString = function (name) {
return "Hi, I am" + " " + name;


Can someone please help me with my code?


var nameString = function (name) {
return "Hi, I am" + " " + name;
console.log(nameString("dl reddy"));

use this code


Here is the problem,

Your name should be in" " quotes. :slight_smile: so like,


All your other code is fine.


It's not good to just give people answers without explaining where they went wrong and how to fix it.


Thank you so much for your help


Thanks for your help, man. Really helped. Didn't notice that difference. :slight_smile:


You're welcome.:slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.