Is this tree nowadays
"Try to avoid nested functions because they will always be lazily parsed, so they will be parsed repeatedly, and this will affect the performance"
so, should I use this
function fun() {
function foo() {}
foo();
}
or this
function foo() {}
function fun() {
foo();
}
Which one is better in terms of performance?