4 ms·
JavaScript is very strongly typed. Everything will have a type. And it will be enforced and checked during runtime. This will prevent buffer overflows and memo
by z3t4 7y ago
JavaScript is very strongly typed. Everything will have a type. And it will be enforced and checked during runtime.
This will prevent buffer overflows and memory leaks.
JavaScript is dynamically typed.
This allows you to to do funny things like [1,2,3] + ",4"
Because it's strongly typed, all values will be converted to a type.
JavaScript does type checking during compilation, but it's not considered a static language, because it allows "duct typing" meaning you can add or remove properties and methods on objects during runtime.