@babel/plugin-proposal-numeric-separator

    Binary Literals

    1. let nibbles = 0b1010_0001_1000_0101;
    2. // Is bit 7 on? It sure is!
    3. // 0b1010_0001_1000_0101
    4. // ^
    5. console.log(!!(nibbles & (1 << 7))); // true

    Octal Literal

    1. npm install --save-dev @babel/plugin-proposal-numeric-separator

    Via CLI

    1. babel --plugins @babel/plugin-proposal-numeric-separator script.js
    1. {
    2. "presets": ["@babel/preset-env"],
    3. "plugins": ["@babel/plugin-proposal-numeric-separator"]
    4. }
    5. {