Please solve function

// Complete this function to return either
// “Hello, [name]!” or “Hello there!”
// based on the input

function sayHello (name) {
// You can print to STDOUT for debugging like you normally would:

// but you need to return the value in order to complete the challenge
return name; // TODO: return the correct value

if the function is called as sayHello("Joe"), your function just returns "Joe", you need to return “Hello, [name]!” or “Hello there!”, you need to add something else.

Try adding a variable message in this way:
var message = name; and then manipulate it till you have the result you need, adding below

console.log(message); //so you know what the message is now
return message;