Operator Precedence and Different Data Types
<html> <head> <title>Operator Precedence and Different Data Types</title> </head> <body> <script type="text/javascript"> <!-- var carLength = 4 + 5; document.write(carLength); carLength = "<br>" + 4 + 5 + " feet"; document.write(carLength); carLength = "<br>Length in feet: " + 4 + 5; document.write(carLength); carLength = "<br>Length in feet: " + (4 + 5); document.writeln(carLength); //--> </script></body> </html>