4 ms·
JS has a dynamic type system. You may not like it, that doesn't mean it doesn't have one. Otherwise, no programming language would have a type system except fo
by javcasas 2y ago
JS has a dynamic type system. You may not like it, that doesn't mean it doesn't have one.
Otherwise, no programming language would have a type system except for Idris, for exactly the same reason.
- purple-leafy 2y agoMaybe I’m misunderstanding, could you give me an example? Do you mean the fact that it can imply a variables type from assignment? Edit: I’m plainly wrong, mishmashing words. Yes JavaScript has a dynamic type system
- javcasas 2y agoType systems don't deal with variables. Type systems deal with interactions between values. Maybe those values are inline, maybe they are stored in variables. You don't imply anything from an assignment other than the variable now has or is pointing to the new value. This is the same in every programming language. The only difference is that some programming languages gatekeep what you can assign to a variable based on types.