Numbers and Math in ES6

In ES6 there are a bunch of additions to Numbers and the Math object. There are new Number literals, Binary and Octal, as well a ton of new methods for Math.

Binary Literals

In ES6 we have to ability to create binary literals. In order to do this we need to prefix our binary number with 0b or 0B.

Get hands-on with 1200+ tech skills courses.