Challenge Hints: Parameters

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

Last updated - June 30, 2023

 

Checkpoint

Does your function accept a parameter in the parenthesis?

Does your function log something to the console?

Did you add the parameter to 256 inside the console.log?

Did you call the function three times with different parameters?

Favorite Desserts

Did you remember to prompt the user for the three different types.

Did you remember to create all 3 functions?

Did you remember to log each concatenated phrase to the console?

Did you remember to call all three of your functions?

Time Calculator

Did you remember to declare your three functions?

Did you remember to compute the amount of hours into a ratio of years, months, and days?

Did you remember to log each value of to the console?

Did you remember to call each function that you had defined?

Food Pyramid

Did you declare all 6 variables?

Did you remember to create a function for each variable?

Do your functions log a statement to the console?

Did you remember to call each function?

Brief Biography

Did you remember to create 5 variables based off of prompts?

Did you remember to create a function that accepts 5 parameters?

Did you log a statement to the console in your function?

Did you remember to call your function?

Exponents Galore!

Did you remember to declare your three functions?

Did you have each function evaluate the proper calculations?

Did you remember to call each function and pass in a parameter?

Road Trip

Did you remember to declare two functions that both accept the mileage as a parameter

Did you prompt the user for the gallons and then compute and log the number?

Did you prompt the user for the hours driver and then compute then log the number?

Did you prompt the user for the number of miles driven on the trip?

Did you call both of your functions and pass the mileage into them?

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