Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created July 6, 2016 02:44
Show Gist options
  • Save codecademydev/1330040b78886dc3b41ece77ccc783c3 to your computer and use it in GitHub Desktop.
Save codecademydev/1330040b78886dc3b41ece77ccc783c3 to your computer and use it in GitHub Desktop.
Codecademy export
// Accepts a number x as input and returns its square
var square = function (x) {
return x * x;
};
// Write the function multiply below
// It should take two parameters and return the product
var multiply = function (x, y) {
return x * y;
};
multiply(2, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment