Lexical syntax
BigInt literal
An integer literal followed by n denotes a BigInt. Valid forms include decimal and supported binary, octal and hexadecimal integer forms. Fractional and exponent-form literals with n are invalid. A leading minus is a unary operator, not part of the literal.
Formal Syntax & Structure
javascript syntaxjavascript
123nWorking Example
Example Snippetjavascript
console.log(String(0x10n));