For variable radius value assigned is 10. This variable is further used calculate area of circle using formula PI*radius*radius. The result is stored in another variable called areaOfCircle. The result is logged as below condole.log(areaOfCircle) // 314 metres Since the value assigned for radius is 100, the PI*r*r results into 31400 metres. To fix this, I have adjusted radius value to 10. Now the result will be 314 metres.pull/877/head
parent
55d8e3dbc0
commit
d8ef8def00
Loading…
Reference in new issue