portlandcodeschool / JS2013F-assignment5

Repo for our fifth assignment
0 stars 0 forks source link

Assignment 5

If you haven't already, you need to clone this repo and create a new working branch for yourself.

  1. git clone git@github.com:portlandcodeschool/JS2013F-assignment5.git
  2. cd JS2013F-assignment5
  3. git checkout -b <your lastname>
  4. git mkdir <your lastname>
  5. git cd <your lastname>

And you're ready to work!

Review assignment

Refactor this function to accept a single object as a parameter instead of five seperate parameters

function recordMaker (name, address, phoneNumber, age, wombat) {
  console.log(name + " is " + age + "years old, and lives at " + address);
  if (wombat) {
    console.log("Calling " + name + " at " + phoneNumber + " about their wombat");
  } else {
    console.log(name + " doesn't have a wombat");
  }
}

upload you work as recordMaker.js

Basic assignment 1

Use the class creation pattern to implement a RoadSign class. It should have text, color and shape properties. Use the constructor to create a Yield Sign, a Stop Sign and a Speed Limit Sign.

upload your work as roadsign.js

Intermediate assignment

TBA