|
|
|
|
|
by z3t4
2515 days ago
|
|
I find hoisting a convenient feature as I can declare the variable in context to where it's used. It means I do not have to break the flow of how the code reads, making the code easier to understand and less bug prone. Example: if(something) var foo = 1;
|
|