creating a BigInt object: const value = new BigInt(500)
That's the same as new String() and new Number(), in the sense that people shouldn't do this.
The example below correctly does const value = BigInt(maxInteger), a conversion call like Boolean(Number('0')).
But the description uses new, pls fix.
That's the same as
new String()andnew Number(), in the sense that people shouldn't do this.The example below correctly does
const value = BigInt(maxInteger), a conversion call likeBoolean(Number('0')).But the description uses
new, pls fix.Good catch ! You are correct, we should not use
newwith BigInt. I've updated the article accordingly. Thank you!