Create GSwP- 8 of 28

Interactive JavaScript

Output:

Generates two consecutive pop-up boxes with "I have integrity." and then "I have energy." that can be closed by clicking either the "OK" or "Cancel" buttons.


If the "OK" button is clicked on both boxes then the Output: is "True"
If the "Cancel" button is clicked on both boxes the Output: is "False"


If "OK" and then "Cancel" is clicked then the Output: is "False"
If the "Cancel" and then "OK" is clicked then the Output: is "True"

Not sure why this happens.