Functions are first–class citizens in JS, meaning that they can be passed around like any other type of data, eg, variables. http://en.wikipedia.org/wiki/First-class_function
Declared functions build in memory immediately when the program loads.
.x-column { | |
float: left; | |
margin-right: 4% | |
} | |
.x-column.x-1-1 { | |
width: 100% | |
} |
Functions are first–class citizens in JS, meaning that they can be passed around like any other type of data, eg, variables. http://en.wikipedia.org/wiki/First-class_function
Declared functions build in memory immediately when the program loads.
/* Developers for the Forest of Function Expressions Theme Park have created a function declaration named forestFright, but they’ve decided not to keep the function in memory.
Convert the function from a named function declaration to an anonymous function expression and assign it to a variable called runAway.
function forestFright() {
var toAlert = "";
for (var i = 0; i < 5; i++) {