javascript realizes the given radius to find the area of the circle
- 2020-06-22 23:50:35
- OfStack
The code is quite simple, there is no more nonsense here, friends of their own reference under it.
<script>
var circularityArea = new Function("r","return r*r*Math.PI"); // create 1 Function objects
var rCircle = 2;// Given the radius of the circle
var area = circularityArea(rCircle);
alert(" radius 2 Is the circle area of " + area);
</script>
This is the end of this article, I hope you enjoy it.