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
raghavm (94)
// The sayMyName function
function sayMyName(myName){
   return "Hello, my name is " + myName;

// Calling the function:
let greeting = sayMyName("William");

// Printing it to the console:

If this worked for you, please mark it as the answer. If you need more info, comment and I'd be more than happy to help. :)