@davidwalshblog OMG. Never knew about “Numeric separators”!! Looks like the underscore can go ANYWHERE except the beginning or end. So these are both valid: 1_234 1_2_3_4 But can only use a single Numeric separator at a time. So this is not valid: 1__234 I am giddy over this ridiculous thing.
@davidwalshblog Because it's only going into ECMAScript 2021 next month? ;)
@davidwalshblog All the cool programmers get the best JavaScript tips in the mail. This was in issue 738. What, you’re not getting this magazine?
@davidwalshblog I remember this landing in Firefox about two years ago... just goes to show that we never stop learning.
@davidwalshblog most modern languages and dialects allow for this type of number helper/notation. looks much more readable from miles away. 1_000 miles, that is... 😁
@davidwalshblog hahaha beautiful discovery, JS is the best language for surprises and unexpected behaviour but I like it :)
@davidwalshblog I read recently that numeric separators are coming in PHP8 too, Maybe a result of more devs using large numbers in creating crypto software 🤷🏽♂️
@davidwalshblog Used it in typescript did not know it's a js feature already.
@davidwalshblog It’s a bad day you learn nothing! Very nice!