| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 843df1a commit 4175ea3
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -777,8 +777,14 @@ const million = 1_000_000; | |||
| 777 | 777 | const bigNumber = 123_456_789n; | |
| 778 | 778 | const bigDecimal = 1_234.123_45; | |
| 779 | 779 | ||
| 780 | - console.log(thousand, million, bigNumber, bigDecimal); | ||
| 781 | - // 1_000 1_000_000 123_456_789n 1_234.123_45 | ||
| 780 | + console.log(inspect(thousand, { numericSeparator: true })); | ||
| 781 | + // 1_000 | ||
| 782 | + console.log(inspect(million, { numericSeparator: true })); | ||
| 783 | + // 1_000_000 | ||
| 784 | + console.log(inspect(bigNumber, { numericSeparator: true })); | ||
| 785 | + // 123_456_789n | ||
| 786 | + console.log(inspect(bigDecimal, { numericSeparator: true })); | ||
| 787 | + // 1_234.123_45 | ||
| 782 | 788 | ``` | |
| 783 | 789 | ||
| 784 | 790 | `util.inspect()` is a synchronous method intended for debugging. Its maximum | |
| Back | FazBrowse Home | New Git URL |
0 commit comments