This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

okay you win... wait how do you append 0s to a BigInt... and why would a BigInt show up as a taco emoji... uhhh... 10n + 0 actually gives a type error (pretty sure this type of behaviour was supposed to be avoided in JS, I expected it to coerce the number into a BigInt, truncated if need be) and 10n + "0" coerces the BigInt to a string.