1let number = 2;
2let exponent = 3;
3
4//using the exponent operator
5console.log( number ** exponent);
6// using the Math library
7console.log( Math.pow(number, exponent);
8// these will both output 8
1// Use Math.exp(a) to return the exponential of the value passed
2var num = Math.exp(1)