Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
Select the best answer to the following question:
Do functions need to have return statements?
Yes, it is a syntactic requirement.
Yes, it is the only way for a function to display a result to the user.
No, the function will automatically return a value if a given condition is true.
No, return statements are only needed if you need to pass back a value to the calling statement.