Operator order in action : Operator Precedence « Operators « JavaScript Tutorial






<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
alert(3 - 1 * 6);
alert((3 - 1) * 6);
//  -->
</script>
</head>
<body>

</body>
</html>








2.14.Operator Precedence
2.14.1.Operator Precedence from highest to lowest
2.14.2.Operator order in action