JS Built-ins
BigIntbeginner

BigInt() β€” equality with literal

πŸ“– Usage Example
typeof 42n  // β†’ 'bigint'

BigInt values have their own type 'bigint', distinct from 'number'.

BigInt Equality

BigInt(10) === 10n is true. Both represent the same BigInt value.

Challenge: Verify this equality.

πŸ’‘ Hints (1)
  • β€’ BigInt literals and BigInt() produce identical values.