Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed JavaScript Functions!
You have completed JavaScript Functions!
Preview
In this practice challenge, you will make the random number function you created earlier more flexible.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
This time,
the function needs to accept two values,
0:01
a lower value and an upper value.
0:04
In other words, the function should be
able to produce random values between,
0:06
say, 10 and 100, or 9 and 78, as well
as between 1 and 6, or even 0 and 6.
0:10
Let's go over the steps for
this challenge.
0:16
To get started with this challenge,
launch the workspace with this video and
0:18
open the file random.js.
0:22
In the file, I've included
a comment that provides a high
0:25
level overview of the components of
the function you'll need to create.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up