Ask coding questions

← Back to all posts
JS Assignment 8: Scope and the return Statement Help
cpine22 (0)

is this a bug? I'm trying to pass this assignment and I'm confused to why it isnt letting me pass.

// 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'.
const sayMyName = (myName) => {
return Hello, my name is ${myName}.;

ash15khng (216)

It seems to work. Could you tell us what specific tests aren't working?