Exercise Monday

Goal: Practice creating objects in JavaScript. Get comfortable with gathering input from a form and creating an object with that input, which you can then display on your website.


Address Book

Follow along with the videos to create an address book website.

Triangle Tracker

If you complete the address book with time to spare, make a web page that lets the user input the lengths of the three sides of a triangle, and tells whether they form an equilateral, isosceles, or scalene triangle.

Here are the Triangle rules you'll need:

  • equilateral: all sides are equal;
  • isosceles: exactly 2 sides are equal;
  • scalene: no sides are equal.
  • NOT a triangle: the sum of the lengths of any two sides of a triangle is less than or equal to the length of the third side.