JS ⟩ error ⟩ TypeError ⟩ cannot convert BigInt to Number❗
TypeError:cannot convert BigInt to Number❗
replit:can't convert BigInt to Numberarrow-up-right
const n = 40n; // BigInt +n; // ⛔️ TypeError: Cannot convert a BigInt value to a number
type conversion: BigInt -> Number
🌟
⛔cannot convert Symbol to Number❗️
unary arithmetic operator ⟩ unary plus (+)
TypeError: can't convert BigInt to numberarrow-up-right
Last updated 3 years ago