在JavaScript中,下面哪一条语句在页面上显示圆周率π。()A.document.write(Math.Pi)B.document.write(Math.pi)C.document.write(Math.PI)x
在JavaScript中,下面哪一条语句在页面上显示圆周率π。()
A.document.write(Math.Pi)
B.document.write(Math.pi)
C.document.write(Math.PI)x
相关考题:
JavaScript中,显示81的平方根的正确方法是?() A.document.write(math.sqrt(81))B.document.write(Math.sqrt(81))C.document.write(Math.sqrt”81”)D.document.write(Math.sqrt”81”)
在JavaScript中,下面哪一个语句可以作为for循环有效的第一行?()A.for(x=1;x 在JavaScript中,下面哪一个语句可以作为for循环有效的第一行?()A.for(x=1;xB.for(x==1;xC.for(x=1;x=6;x+=1)
math库包含4个数学常数,math.pi表示自然对数,math.e表示圆周率