⛔cannot convert BigInt to Number❗️
JS ⟩ error ⟩ TypeError ⟩ cannot convert BigInt to Number❗
const n = 40n; // BigInt
+n; // ⛔️ TypeError: Cannot convert a BigInt value to a number🌟
unary arithmetic operator ⟩ unary plus (+)
Last updated
Was this helpful?