Skip to content

Instantly share code, notes, and snippets.

@stevencombs
Created August 16, 2013 22:35
Show Gist options
  • Save stevencombs/6254076 to your computer and use it in GitHub Desktop.
Save stevencombs/6254076 to your computer and use it in GitHub Desktop.
// 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