harriersfan
03-08-2000, 22:41
wtf is wrong with my v. simple js:
<script language=javascript>
alert (a javascript to find the area of a circle)
var radius = prompt ("what is the radius of the circle?","don't enter units yet, just a number...")
var unit = prompt ("enter the units of the radius?","see why you din't need to enter units now?")
var area = 3.141592653589793(radius * radius)
alert ("the area of the circle is" +area+unit+"<sup>2</sup>")
</script>
<script language=javascript>
alert (a javascript to find the area of a circle)
var radius = prompt ("what is the radius of the circle?","don't enter units yet, just a number...")
var unit = prompt ("enter the units of the radius?","see why you din't need to enter units now?")
var area = 3.141592653589793(radius * radius)
alert ("the area of the circle is" +area+unit+"<sup>2</sup>")
</script>