Consider the following code segment containing a nested if-else statement: if (x >= y) {if (x*10 <

Question:

Consider the following code segment containing a nested if-else statement:

if (x >= y) {if (x*10 < 100) {alert('ONE');}else {alert('TWO');}}else {alert('THREE');}

Given the following assignments, predict the behavior of the preceding code?

x = 0; y = -5; x = 9; y = 9; x = 22; y = 21; 

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: