3 ms·You can also use blocks this way in C, Java, etc.by dhconnelly 15y agoYou can also use blocks this way in C, Java, etc.spicyj 15y agoHowever, in C and Java they're actually useful because they delimit variable scope. In JavaScript I'm not aware of any use for them.bzbarsky 15y agoEcmaScript is working on growing a way to indicate block scope with "let" as mentioned elsewhere in this thread.