Numeric Separators

Video

JavaScript Notes

JavaScript
    // Numeric Separators
    // https://caniuse.com/mdn-javascript_grammar_numeric_separators
    // allows you to put '_' in numbers, to make it easier to read the code
    
    const log = console.log
    let num = 123_456_789;
    let bigNum = 12_345_678_901_234_567_890n; // new Primitive Type BigInt
    
    log(num);
    log(Number.MAX_SAFE_INTEGER);
    log(bigNum);