[Solved] Why is this programming style not used? [closed]


I think this style is not used, because the best practice is to split up code into small functions/classes/methods anyway. This way, the variable count in each scope is reduced without using scoping blocks.

Unlike other languages, like Rust, where scoping has immediate consequences on memory allocation, I don’t see a huge benefit in JavaScript to declare scopes.

solved Why is this programming style not used? [closed]