Michael Quinn's Homepage

Lab 12 - Conditionals

Challenge

The challenge of this lab assignment is to create a function that depends on conditionals while working with a partner.

Problems

There was some issues with having the button appear when testing Michael's code locally. Later we discovered this was due to the ordering of code in the javascript file. The sorting function being on top of the javascript file confused the DOM which led to the code not appearing. This taught us a valuable lesson on how code cascades in Javascript.

Reflection

Me and Newton worked together well and we had blast working on the lab assignment together. Please check out their website on the bottom of the page.

Results

Please take a look at the results. Type in your first name to get assigned a gender role by the government.

Script Output: