been working on this one for a while now i need help would be greatly appreciated
washingtonwill (0)

Exercise Three:
// Create a function called 'sayMyName'. It will take one parameter. Call this
// parameter 'myName'. Return the phrase "Hello, my name is " and the myName parameter.
// eg: if name is 'Dan' it should return the string: 'Hello, my name is Dan'.

You are viewing a single comment. View All
Answered by raghavm (73) [earned 5 cycles]
View Answer
washingtonwill (0)

This is what i got and its giving error...

function sayMyName(myName){
let myName = 'William';
return 'Hello my name is', myName;
}
sayMyName();