Created
January 29, 2018 16:49
-
-
Save kmarler2/4c266dce5c7585047cfdf0780f992cc9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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