This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Pair Programming Practice. Submit a link to your gist here when you are done: | |
https://goo.gl/forms/mPumIHpIKF3W1gjt2 | |
*/ | |
/** | |
EXERCISE ONE | |
What is wrong with the following definitions of square? Write a sentence or two describing the issue(s); then, | |
try copying the erroneous examples into a console one-at-a-time and observing the error(s) generated (you may | |
have to attempt to invoke the functions to see the error). What errors are produced (if any) for each erroneous |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Noah Loring | |
*/ | |
// #1 | |
function average (num1, num2) { | |
return (num1 + num2)/2; | |
} |