Created
August 16, 2013 22:35
-
-
Save stevencombs/6254076 to your computer and use it in GitHub Desktop.
This file contains 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
// Javascript Getting Started with Programming | |
// A Codecademy Javascript (Functions with two Parameters) assignment | |
// Dr. Steven B. Combs, coding novice | |
var perimeterBox = function(length, width) { // Define function with two variables | |
return 2 * (length + width); // Multiply length + width times 2 | |
}; | |
perimeterBox(2,2) // Call function with two variables |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment