1n
is a BigInt literal in JavaScript. BigInts currently display incorrectly/ don't display at all in the Stack Snippet console; console.log(1n)
logs nothing and console.log([1n])
logs [null]
instead of correctly displaying the BigInt values 1n
and [1n]
.
Compared to an actual browser console, which logs the BigInt value correctly both as-is and in an array:
Example Snippet:
console.log(1n) // logs nothing
console.log([1n]) // logs [null]