3 ms·
When assigning to val more than once: in a statically checked language the compiler will complain, and devs default to 'val' anyway. In a dynamic language you'd
by MrBuddyCasino 6y ago
When assigning to val more than once: in a statically checked language the compiler will complain, and devs default to 'val' anyway. In a dynamic language you'd quickly get a runtime error.
Using 'var' instead of 'val' where possible: the compiler/linter will tell you this.
Or do you mean something else?