This forum is now read-only. Please use our new forums! Go to forums
Error: Oops try again. What's up?
Can anyone help me spot what’s wrong with my function for exercise 3, “Your First Function”?
I’m getting the error:
“Oops, try again! Did you remember to use echo or print, followed by your name?”
function displayName() {
echo("Tim");
}
Complete code for my page:
<html>
<head>
<title></title>
</head>
<body>
<p>
<?php
// Write your function below!
function displayName() {
echo("Tim");
}
?>
</p>
</body>
</html>
Answer 517991844be8a3c1c9000c22
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
2 comments
Yeah, i don’t understand why would you put parenthesis when in the past lesson, and even the Hint state clear that do not use them.
But, the doubt I have is: when you have write this code and submit it, It appears to name on the fake screen? or not?