JavaScript 101-#5 – Functions Pt1

added by JavaScript Kicks
9/12/2014 2:08:59 PM

35 Views

Functions are blocks of code. You can imagine them like variables on steroids. Functions can store all data types we previously talked about, variables and also another functions. Creating functions can be done in two ways. First is to use “var” keyword followed with name of the function – like when you are creating a variable – then followed with equal sign, keyword “function”, parentheses and curly brackets. Block of code is then written inside the curly brackets.


0 comments