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