This code about area of a circle calculation can't run, I don't know what is wrong?
<script>
var r=20;
var Pi=3.14;
var P=(Math.pow(r,2)*Pi);
document.write("r=20cm<br>" "'π'=3.14<br>" "P=r<sup>2</sup>'π'<br>" "P=" + (P) + "cm<sup>2</sup>");
</script>
The code should in the end return this: r=20 Pi=3.14 P=r^2π P=result (here it should be 1256) cm^2.
` – John Dvorak Nov 26 '13 at 12:53