<prompt> Kuandika javascript kazi ambayo mahesabu mzizi mraba wa idadi bila maktaba yoyote.  <response>: Sure, heres an example:function calculateSquareRootnum if num 0 return NaN; if num 0 return 0; let x num; while true const new_x x num x 2; if Math.absnew_x - x 0.000001 return new_x; x new_x; This function uses the Babylonian method for computing square roots, which is an iterative method that repeatedly improves the estimate of the square root using the formula: x_n1 x_n num x_n 2. The loop continues until the difference between the current estimate and the previous estimate is less than some small epsilon in this case, 0.000001. 