In TypeScript numbers can be separated using underscore. This improves the readability of large numbers.
// Bad, hard to read. How many zeros are there?
const MAGIC_NUMBER = 1000000;
// Good
const MAGIC_NUMBER = 100_000;
In TypeScript numbers can be separated using underscore. This improves the readability of large numbers.
// Bad, hard to read. How many zeros are there?
const MAGIC_NUMBER = 1000000;
// Good
const MAGIC_NUMBER = 100_000;