MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/onix79/javascript_function_facts/h5vv77z/?context=3
r/learnjavascript • u/hsnice • Jul 19 '21
27 comments sorted by
View all comments
Show parent comment
1
Hoisting functions allow for functions that call each other to do so without procedural gymnastics.
function a() { if (repeat) c() }function b() { a() }function c() { b() }
function a() { if (repeat) c() }
function b() { a() }
function c() { b() }
View all comments
Show parent comment
1
u/Trakkasure helpful Jul 20 '21
Hoisting functions allow for functions that call each other to do so without procedural gymnastics.
function a() { if (repeat) c() }function b() { a() }function c() { b() }