🗃️U2LA1 Mini Project: JavaScript Essentials

How can I store and manipulate data to later be used in various ways throughout my website?

Teacher Notes

This vanilla javascript lab is located exclusively in the script.js (repl.it version) 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 (repl.it | github) for this project.

Prompt

For this lab, put together what you know so far about javascript and try the challenges in the ). Use the resources below under Extra Help if you get stuck. When the time's up come back here for some reflection questions.

Exemplar (teacher's view only)

Take a look at this finished example for the answer key to the javascript challenges.

Culturally Responsive Best Practice

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.

Extra Help?

Use the following resources to see examples of how to implement the methods, functions and other concepts in the script.js:

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?

Last updated