Table of contents Home page
Execute this code
// Operator precedence: 5 // Operator associativity: left-to-right var p = prompt("Enter a number to test whether it is an odd number which is also greater than 5.") if (p > 5 && p % 2 != 0) { alert("Your number is indeed odd and greater than 5.") } else { alert("Your number is either even or not greater than 5.") }