U2LA1 Mini Project: JavaScript Essentials
How can I store and manipulate data to later be used in various ways throughout my website?
Last updated
How can I store and manipulate data to later be used in various ways throughout my website?
Last updated
This vanilla javascript lab is located exclusively in the () is a series of challenges for students to get familiar with javascript essential topics from variable arithmetics to functions with conditional statements. The extensions are included but not labeled at the bottom of the script.js
. They require researching the Pythagorean theorem formula and researching recursive functions to be completed.
Students should utilize the Starter Code ( | ) for this project.
For this lab, put together what you know so far about javascript and try the challenges in the ). Use the resources below under if you get stuck. When the time's up come back here for some reflection questions.
Take a look at for the answer key to the javascript challenges.
In the previous unit, students learned to build and add style to websites that they were, unfortunately, unable to interact with. Consider starting this unit by having students look for websites that they can interact with. Have them identify what is happening in their own words and why they enjoy interacting with the website they found. In this way, students can find something they can relate to that will demonstrate how vanilla javascript can potentially add value to the websites they build in the near future.
Use the following resources to see examples of how to implement the methods, functions and other concepts in the script.js
:
Math.floor()
, Math.sqrt()
, and .
Converting to
(aka Formatted Strings)
[Super Challenge]
Reflection Questions:
What was the most challenging part of the lab? What was the part you're most proud of?
What was one point in the challenges you got stuck? What did you do to unstick?
Why might what you've learned today be useful for making websites in the future?