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
See how to create the four functions in this practice session.
Resources
- Understanding the Order of Operations: PEMDAS (Please Excuse My Dear Aunt Sally)
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
Also, keep in mind there
are often different ways to solve
0:00
a programming challenge.
0:01
Your solution may be different than
mine and still work, that's fine.
0:02
Okay, first I'll use the script
tag to attach this JavaScript file
0:06
to the index.html file.
0:10
Because the geometry.js file
is inside a JavaScript folder,
0:14
js, the complete path from the index to
the JavaScript file is js/geometry.js.
0:19
Okay, next I'll create a function.
0:26
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