Description
Is your feature request related to a problem? Please describe.
The new proposal, Numeric Separators, allows separators to be used in source code, making large numbers more legible. This proposal is in Stage 4, and is already supported by all major web browsers, NodeJS, and many transpilers... but not in LWC.
10000000000 // Can you easily tell what number this is?
10_000_000_000 // Much better!
Describe the solution you'd like
Add support for numeric separators.
Describe alternatives you've considered
This can presumably be enabled on a per-developer situation by adding this Babel plugin. However, we can't use this in scenarios where we can't modify the compiler (e.g. Salesforce LWC).
Additional context
This was sourced from this question on Salesforce Stack Exchange. The LWC team should generally give some attention to other commonly-supported-features that may not be standards (yet), to avoid unnecessary frustration (as demonstrated in this question). I realize that there are things that may be higher priority, but some easy-to-fix quality-of-life issues should be given some consideration. If a developer can write a given piece of ECMAScript literally anywhere else but LWC (aside from as restricted by security concerns, of course), that makes LWC seem dated and less attractive when choosing a framework.
Activity