2 ms·
in js you can just leave the named function inline. i sometimes create functions that call themself so that i can just move it out if the code needs to be repea
by z3t4 9y ago
in js you can just leave the named function inline. i sometimes create functions that call themself so that i can just move it out if the code needs to be repeated, and i dont have to clutter the scope with more variables. with es6 js got bracket scoping, but i still prefer function scope and closures.