math.sqrt code example
Example 1: sqrt javascript
let number = 16
Math.sqrt(number);
//output = 4
Example 2: sqrt(-1)
sqrt(-1) returns i
Example 3: raiz quadrada javascript
// efectua a raiz quadrada de x
Math.sqrt(x);
let number = 16
Math.sqrt(number);
//output = 4
sqrt(-1) returns i
// efectua a raiz quadrada de x
Math.sqrt(x);