Possible Answers

  1. The condition in if checks if the value of variable today is equal to "Sunday". In our case, this is false, hence the else code block is executed and "I have tons of work to do" is displayed in an alert.
  2. Variable a is 40 and b is 60, hence a is less than b. The condition in the inner pair of brackets is thus 'false'. However, the ! operator (also called the NOT operator) changes it to 'true'. The function of the NOT operator is to reverse a condition. An alert box with "Hello" will be printed when this code is executed.
  3. The 'true' condition is changed to 'false' by the first NOT operator. It then changes back to 'true' when it encounters the second NOT operator.