Skip to content

Instantly share code, notes, and snippets.

@kmarler2
Created January 29, 2018 16:49
Show Gist options
  • Save kmarler2/4c266dce5c7585047cfdf0780f992cc9 to your computer and use it in GitHub Desktop.
Save kmarler2/4c266dce5c7585047cfdf0780f992cc9 to your computer and use it in GitHub Desktop.
function bird() {
var cool bird = "This bird is cool";
console.log(cool bird)
}
1. Add a function name
2. Set parameters
3. Add any statements or expressions inside the curly braces
4. To call the function at a later time, write the function name and the parameters
-Variables inside the function are local to it
-You can use functions to complete simple math problems
-A function is like a recipe, you put in something and get something different out.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment