Javascript Notes Closures: A closure is a function having access to the parent scope, even after the parent function has closed. Example: const add = (function () { let counter = 0; return function () {counter += 1; return counter} })(); add(); add(); add();