🚧 under construction -> not not (!!)
JS ⟩ statement ⟩ expression ⟩ operator ⟩ arithmetic ⟩ unary ⟩ +
convert any value (except Symbol, BigInt) to Number.
// any -> number +x // except Symbol, BigInt +Symbol() // ⛔️ TypeError +40n // ⛔️ TypeError // TypeError: Cannot convert a Symbol/BigInt value to a number
🌟 table of operators,
cannot convert Symbol to Number❗️
cannot convert BigInt to Number❗️
type conversion
double tilde (~~) - nearest integer towards zero.
not not (!!) - convert any -> bool.
uses punctuator plus (+).
JavaScript: The Definitive Guide ⟩ 4.8.2 Unary Arithmetic Operators
Last updated 2 years ago