Function recap #11


#1

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

};
console.log(namestring(Dave));

Can someone please help me with my code?


#2

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

use this code


#3

Here is the problem,

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

console.log(namestring("Dave"));

All your other code is fine.


#4

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


#5

Thank you so much for your help


#6

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


#7

You're welcome.:slight_smile:


#8

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