Closures are also known as lexical scoping. It is a result of functions that can nest, and functions that are values. The context of the inner function includes the scope of the outer function. The image below is taken from Crockford’s “The Good Parts of JavaScript and the Web” course on Front-End Masters (I watched […]
Posts from August 2018
_.map – Javascript Problem
This is an exercise taken from the Javascript: From Fundamentals to Functional course by Bianca Gandolfo on FrontEnd Masters. The characters are taken from a game of Clue – a murder whodunit… Here I have recreated a map() method in a slightly different way. Instead of attaching it to the array prototype, I created it […]
_.forEach – Javascript Problem
This is an exercise taken from the Javascript: From Fundamentals to Functional course by Bianca Gandolfo on FrontEnd Masters. The characters are taken from a game of Clue – a murder whodunit… Here I have recreated a forEach() method in a slightly different way. Instead of attaching it to the array prototype, I created it […]