Last updated 2 years ago
Was this helpful?
⟩ ⟩ ⟩ ⟩ ⟩ no-preference
no-preference:classes choose their own preference.
no preference
Date (the only built-in type that) chooses "".
all other built-in types choose "".
object -> primitive conversion may result in ⛔️ TypeError
JavaScript: The Definitive Guide ⟩
3.9.2 Explicit Conversions
3.9.3 Object to Primitive Conversions
14.4.7
- object to string.
- object to (primitive) value, if exists.