'**' exponential operator in JavaScript

** Operator in an es6 Escmascript feature a short hand method used for raising numbers to their power

Its syntax is similar to native operators such as '+' Addition and '-' (minus) for subtraction

Example ussage
Initially to raise a number to the power you would need to use math library pow function as;

Math.pow({number}, {factor})

Since es2017 you can simplify the operation above down to simply as;

{number} ** {factor}

Example as;

5 ** 2
// Giving you 25


Popular posts from this blog

How to draw clouds on HTML5 Canvas

How to set content disposition header for nginx server to force content download

How to restore PostgreSQL database dump

Introduction to webshare API (navigator.share)

FlappingBird JS13K Games