CD-49Chapter 7 .Programming Fundamentals, Part II (Remote web server) The following
CD-49Chapter 7 .Programming Fundamentals, Part II The following example assumes that a variable, myAge, has had its value set earlier in the script (exactly how is not important for this example). The condition expression compares the value myAge against a numeric value of 18. if (myAge < 18) { alert( Sorry, you cannot vote. ) } The data type of the value inside myAge must be a number so that the proper comparison (via the