tc39/proposal-exponentiation-operator

Can't understand

TimChen44 opened this issue · 2 comments

let cubed = 2 ** 3;
// same as: 2 * 2 * 2

Why not use:
let cubed = 2 ^ 3;
This is more in line with mathematical formulas.

xor, 2 ^ 3 === 1.

python,perl,ruby...etc is used **