Parameters and arguments error - please help


Here is my code:

function greetings($name) {
print "Greetings, " . $name . "!";

$name = "Michael";



It shows the right final result, but gives this message: "Oops, try again. It looks like nothing was printed! Did you remember to call your function? (Check the Hint if you need help.)"

Please help!


Did you try calling directly with your name as the argument?



Don't worry it works. I tried another editor.


Yes, the code should work, no matter, but did it eventually pass the lesson? Or did you have to reduce it to what I showed above?


I copied and restarted my browser, then pasted it and it worked. Thank you all for your help!


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