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

Javascript : Async/await In .replace

I am using the async/await function the following way async function(){ let output = await string… Read more Javascript : Async/await In .replace

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?

How To Make Vs Code Recognize The Es7 Bind Operator

VS Code does not recognize the ES7 bind syntax out of the box. Instead, it shows up as a syntax err… Read more How To Make Vs Code Recognize The Es7 Bind Operator

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