Back to Browse

JavaScript tips — The exponentiation operator (**)

1.4K views
Mar 3, 2023
6:43

The exponentiation operator in JavaScript raises one number to the power of another. This is the same as the Math.pow function, but written in a more natural syntax The exponentiation operator is written with two stars: 2 ** 4. Unlike Math.pow, it can also work with BigInt values #javascript #typescript #programming #coding

Download

1 formats

Video Formats

360pmp47.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

JavaScript tips — The exponentiation operator (**) | NatokHD