Use parenthesis in expression : Expressions « Language Basics « JavaScript Tutorial






<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
    var inpRadius;
    inpRadius = 3;
    document.write(Math.PI * ((inpRadius)*(inpRadius)));
//  -->
</script>
</head>
<body>

</body>
</html>








1.2.Expressions
1.2.1.Use parenthesis in expression
1.2.2.Use parenthesis in expression 2