Challenge Hints: Functions

A list of hints for the challenges in the Functions lesson.

Last updated - June 30, 2023

 

Checkpoint

Did you include opening and closing curly brackets after your function?

Call your function by using "functionName();"

Double Dog Dare

Did you properly create your dare function? (Should log the phrase "I dare ... " to the console)

Did you properly create your double dog dare function? (Should log the phrase "I double dog dare..." to the console)

Did you remember to call both of your functions?

Baseball Game

Did you define your four functions?

Did you have each function log to the console if it is either a "single", "double", "triple", or a "home run"?

Did you call each function that you had defined?

The Narrative

Did you remember to declare your four different functions?

Did you remember to have each function log a statement to the console?

Did you remember to call all 4 of your functions?

Pizza Area Calculator

Did you remember to declare the pizzaCalculator function?

Did you remember to prompt the user for the radius of the pizza?

Did you remember to compute the area of the pizza? (radius*radius*pi) pi = 3.14

Did you remember to alert the user of the area of the pizza?

Did you remember to call your pizzaCalculator function?

For more help with JavaScript, check out our JavaScript Reference Guide!