42n + 8n // β 50n
Use the n suffix to write BigInt literals directly in code.
BigInt(42) creates a BigInt from a number. Its type is still 'bigint'.
BigInt(42)
'bigint'
Challenge: Verify typeof BigInt(42) is 'bigint'.
typeof BigInt(42)