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.