3 ms·
You can use "var", but it does not have proper block scoping; usually proper block scoping would be wanted, so use "let" instead, or "const" if you do not need
by zzo38computer 5y ago
You can use "var", but it does not have proper block scoping; usually proper block scoping would be wanted, so use "let" instead, or "const" if you do not need to reassign the value later (I don't know whether or not any implementations can optimize based on that).