Skip to content Skip to sidebar Skip to footer
Showing posts with the label Ecmascript 2016

Typeerror: Cannot Mix Bigint And Other Types, Use Explicit Conversions

I am trying to generate a 20 digit random number: let code = Math.floor(10000000000000000000n + Mat… Read more Typeerror: Cannot Mix Bigint And Other Types, Use Explicit Conversions

Succinct/concise Syntax For 'optional' Object Keys In Es6/es7?

There are already a lot of cool features in ES6/ES7 for defining Javascript objects. However, the f… Read more Succinct/concise Syntax For 'optional' Object Keys In Es6/es7?

Is There A Shorthand For This In ES6/ES7?

I'm having a bit of a brainfart. Is there a shorthand for this in ES6/ES7? res.locals.hello = h… Read more Is There A Shorthand For This In ES6/ES7?