Lesson 4 Calling Your Function


I don't understand why this does not work...

        // Write your function below!
            function displayName() {
                echo "Bob";


What is the error you are getting?


Oops, try again. Did you remember to call displayName(); in your code? Don't forget the semicolon!


Hm. Okay. What are the exercise instructions? Please copy them into this thread.


On the line after your function, try calling it. You should see your name display in the results panel!


I don't see anything wrong with your code.

Can you try refreshing the page and re-running the grader?


Tried it. Does not work...


Oh, hey. Third time's the charm. Worked now. Thanks for your help!


Glad you got it fixed.

Sorry about that problem, there.


function returnName() {
return "Christian";