JS ⟩ error ⟩ TypeError ⟩ cannot convert BigInt to Number❗
TypeError:cannot convert BigInt to Number❗
replit:can't convert BigInt to Number
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 number
Last updated 2 years ago