Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created June 16, 2016 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/1784acadc3961f98638180c4d45f7ea0 to your computer and use it in GitHub Desktop.
Save codecademydev/1784acadc3961f98638180c4d45f7ea0 to your computer and use it in GitHub Desktop.
Codecademy export
// Parameter is a number, and we do math with that parameter
var timesTwo = function(number) {
return number * 2;
};
// Call timesTwo here!
var newNumber = timesTwo(47);
console.log(newNumber);
newNumber(16)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment