Loading lesson path
March 2017.
Raises the first operand to the power of the second = Raises the value of a variable to the power of the right operand
Checks if an element is present in an array
JavaScript 2016 is supported in all modern browsers since
52
15
52
10.1
39
ES 2016 is not supported in Internet Explorer.
The exponentiation operator ( ** ) raises the first operand to the power of the second operand.
let x = 5;
let z = x ** 2;x ** y produces the same result as Math.pow(x, y)
let x = 5;
let z = Math.pow(x,2);The exponentiation assignment operator ( **= ) raises the value of a variable to the power of the right operand.
let x = 5;
x **= 2;Array.includes to arrays. This allows us to check if an element is present in an array: