?? [pa?]

n. ??, ?(??, ?? ?? ???)

?????? pow() ??? ???

??: x? y?? ?? ?????.

??: ??Math.pow(x,y)

????: x ?????. ???. ???? ???. y? ?????. ?? ?????. ???? ???.?

??: x? y?????.

??: ??? ????? ??? ?? ? ???? NaN? ?????. ?? ? ??? ?? ?? ??? ????? ???? ?? ? ???? Infinity? ?????.

?????? pow() ??? ?

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript">
//把 pow() 運(yùn)用到不同的數(shù)字組合上
    document.write(Math.pow(0,0) + "<br />")
    document.write(Math.pow(0,1) + "<br />")
    document.write(Math.pow(1,1) + "<br />")
    document.write(Math.pow(1,10) + "<br />")
    document.write(Math.pow(2,3) + "<br />")
    document.write(Math.pow(-2,3) + "<br />")
    document.write(Math.pow(2,4) + "<br />")
    document.write(Math.pow(-2,4) + "<br />")

</script>

</body>
</html>

???? ?? ?

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