Enter A:
Enter B:
Answer:

  1. Pop up an alert box if A is greater than 10.
    alert("A is more than 10");
  2. Pop up an alert box if A is greater than B.
  3. Pop up an alert box saying "Yea" if A is exactly twice B, and pop up an alert box saying "Nay" otherwise.
  4. Pop up an alert box saying "big" if A is greater than 10, saying "medium" if A is between 10 ... 5, and saying "small" otherwise.
  5. Turn input field A red if A is not equal to B.
    document.getElementById("a").style.backgroundColor = "red";
  6. Turn input field A red A is less than or equal to B.
  7. Turn input field A red A is between 10 ... 20 including the 10 and the 20.
  8. Turn input field A red A and B are both greater than 10.
  9. Show a hidden message if either A or B is greater than 10.
    See http://euclid.nmu.edu/~rappleto/Classes/CS101/JavaScript/Notes/hidden-text.html
    or https://www.w3schools.com/howto/howto_js_toggle_hide_show.asp
  10. Show a hidden message A is exactly 12 and B is exactly 10.
  11. Set answer to "OK" if A is either 2,4,6, or 8, and set answer to "Bad" otherwise.
  12. Pop up an alert box if A is either 2,4, or 6 and B is either 1,3, or 5. In other words, A=2,B=2 does nothing. A=2,B=1 shows the message.
  13. Write Microsoft Office using Javascript.