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 Practice Basic JavaScript Functions!
You have completed Practice Basic JavaScript Functions!
Preview
Write four JavaScript functions to calculate areas and volumes.
Course
Related Videos
Mozilla Developer Network Reference
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
It's a great followup to the fifth
part of the JavaScript Basics course.
0:00
If you haven't taken that yet, and
find this practice session too difficult,
0:02
then go through the first five
parts of that course first.
0:06
I've added a link in
the teacher's notes below.
0:09
For this practice session,
you'll write four functions.
0:11
Call those functions and
output the results to the console.
0:14
It's pretty simple but
combines the basics of creating and
0:18
using JavaScript functions.
0:21
I've attached a workspace to this video
which includes some starter files and
0:22
instructions.
0:26
Open up the workspace and
open up the geometry.js file.
0:27
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