BigInt is a data type used for comparisons. It is similar to a number but is not a direct equivalent. However, if a number is converted to BigInt, it will not provide extra precision. For example, a division of a BigInt will give an error.
The BigInt data type stores large integers as well as large fractions. Unlike Number, BigInt is always represented by adding “n” to the integer literal. BigInt also has an additional data type: undefined. This type is used when a variable is declared but not assigned a value. Another new data type is Symbol. ES6 has introduced this type, so ensure you’re familiar with it.
A Symbol object can be a powerful tool for developers. It can help them create hidden object properties that can’t be accidentally accessed. Things can also be made with a single Symbol and used to represent the same properties in multiple places. Symbols are also an excellent way to avoid bugs and property conflicts.