For help with markdown syntax Go here
- .forEach will iterate through an entire array, running the passed function for each iteration whereas .map will do the same; however, .map returns an array rather usually modified at each iteration with the passed function, essentially mapping the array.
- Five types of data in JS are String, Number, Boolean, Symbol and Undefined. An Array is a type of data structure in which any type of data may be stored. Specific to Arrays, as apposed to other data structures, is that they are ordered and their elements may be accessed by their indices.
- A Closure is anything within a functions Scope. ie., function iHaveClosure(wuddaShuddaCudda) { var life = 'circumstantial'; return `I ${wuddaShuddaCudda} but life is ${life}. :[` In this case, the variable 'life' is only accessible within the Scope, in in Closure, of 'iHaveClosure'
- The four rules of the 'this' variable are, when in the according Scope, they represent said Object: Global => window -- preceding '.' => object before '.' -- with constructor function => the instance of the constructed object -- with .call, .apply or .bind => the passed object(implicit)