2 ms·
> Values in JS still have different types (as evidenced by their different behavior). Behaviour is based on values, not types. 1+2 will print out a different v
by naasking 8y ago
> Values in JS still have different types (as evidenced by their different behavior).
Behaviour is based on values, not types. 1+2 will print out a different value than 1+1, but these expressions have the same type (typically).
> So no, JS is still not untyped, merely dynamically typed.
I said JS was unityped, not untyped.
- int_19h 8y agoValues also have types, it's not something that's exclusive to expressions and bindings.