Parameters
Parameters
A parameter is a named input for a function. It lets one function work with different values instead of one hardcoded value.
Your task: Complete doubleMinutes so it returns twice the number it receives. Store the result of calling it with 25 in practiceMinutes, then log the result.
Free with a JS Exercises account
Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.
By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.
Parameters
A parameter is a named input for a function. It lets one function work with different values instead of one hardcoded value.
Your task: Complete doubleMinutes so it returns twice the number it receives. Store the result of calling it with 25 in practiceMinutes, then log the result.