What is the output of below Javascript function?

<script type="text/javascript" language="javascript">
function get_value()
{
var value = Math.PI;
alert(value);
}
</script>

 Posted by vishalneeraj-24503 on 12/11/2013 | Category: JavaScript Interview questions | Views: 2280 | Points: 40
Answer:

Above function gives us "3.1415926".

Math is an in-built Javascript function as Dot Net have.

PI means 22/7 = 3.14;


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response