Now that we’ve covered the JavaScript operators, another issue becomes important: How does JavaScript handle multiple operators in the same statement? Take a look at this code, for example:
<HTML> <HEAD> <TITLE> Operator Precedence </TITLE> </HEAD> <BODY> <H1>Working With the Conditional Operator</H1> <SCRIPT LANGUAGE="JavaScript"> <!-- var result = 5 + 3 * 2 document.write("5 + 3 * 2 = " + result) // --> </SCRIPT> </BODY> </HTML>