Sharing an important feature of JavaScript I learnt today.
๐
CLOSURES!!
This feature enables you to make references to a specific instance of a local bindings in an enclosing scope. It re-creates local bindings every time a function is called.
#leetcode
Letโs tell the output ;
At the end of the day, no matter how fancy you make it, does it solve a problem?
Can you solve a problem that people have? Screw all the technical jargon, can YOU solve someoneโs problem at the end of the day?