JS Built-ins
BigIntbeginner

BigInt() β€” typeof from function

πŸ“– Usage Example
42n + 8n  // β†’ 50n

Use the n suffix to write BigInt literals directly in code.

BigInt() Function

BigInt(42) creates a BigInt from a number. Its type is still 'bigint'.

Challenge: Verify typeof BigInt(42) is 'bigint'.

πŸ’‘ Hints (1)
  • β€’ BigInt() converts a number to a BigInt value.