javascript square root of number code example Example: javascript square root var x = Math.sqrt(num);