11.Functions Recap


#1


So i keep on getting an error with this line of code and i don't understand why at all

i keep on getting this error

Oops, try again.
Your code doesn't look quite right. Click "Stuck? Get a hint!" if you need help!

and i don;t understand why. PLEASE HALP


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

console.log(nameString(Dipesh));


#2

Dipesh is a string so it needs " " to make that clear to JavaScript.


#3

A post was split to a new topic: 11. still got error. Please help!


#4

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