JS Built-ins
BigIntasUintNbeginner

BigInt.asUintN() β€” typeof result

πŸ“– Usage Example
BigInt.asUintN(32, 2n ** 32n)  // β†’ 0n

Use asUintN(32, ...) to simulate unsigned 32-bit integer wrap-around.

BigInt.asUintN() Return Type

typeof BigInt.asUintN(8, 1n) is 'bigint'.

Challenge: Verify the return type.

πŸ’‘ Hints (1)
  • β€’ asUintN always returns a bigint.