ClosureA closure is a combination of a function bundled together (enclosed) with references to its surrounding state. In other words, a closure…Jun 17, 2021Jun 17, 2021
HoistingHoisting is the default behavior of moving all the declarations at the top of the scope before code execution. Basically, it gives us an…Jun 17, 2021Jun 17, 2021