[??]= ???, ???

?????? sqrt() ??? ???

??: ??? ???? ?????.

??: ??Math.sqrt(x)

????: x ?????. 0?? ??? ?? ???? ???.?

???: ???? x? ???. x? 0?? ??? NaN? ?????.

?????? sqrt() ??? ?

<html>
<body>

<script type="text/javascript">

    document.write(Math.sqrt(0) + "<br />")
    document.write(Math.sqrt(1) + "<br />")
    document.write(Math.sqrt(9) + "<br />")
    document.write(Math.sqrt(0.64) + "<br />")
    document.write(Math.sqrt(-9))

</script>

</body>
</html>

???? ?? ?

??? ????? ??? "???? ??" ??? ?????