During a particularly-late night coding session, I accidentally discovered that JavaScript now has “numeric separators”. What started as a simple test in my browser console: `dx=100+xo`, would be drailed by a typographical error that revealed a hidden secret… `dx=100_` As I depressed the underscore-instead-of-plus key, Firefox’s auto-evaluator-thingy sprang into action and warned: “Uncaught SyntaxError: underscore […]
JavaScript’s Numeric Separators
Wednesday, June 3, 2020