how to find the perfect square root javascript code example Example: javascript square root var x = Math.sqrt(num);