Use parenthesis in expression : Expressions : Language Basics JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Language Basics » Expressions »

 

Use parenthesis in expression

















<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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Language Basics
» Expressions