Page 1 of 1

A. Consider the following JavaScript code segment: message = ""; if (numl > num2) { message = message + 'ONE-'; numl = n

Posted: Sat May 14, 2022 7:05 pm
by answerhappygod
A Consider The Following Javascript Code Segment Message If Numl Num2 Message Message One Numl N 1
A Consider The Following Javascript Code Segment Message If Numl Num2 Message Message One Numl N 1 (41.55 KiB) Viewed 37 times
A Consider The Following Javascript Code Segment Message If Numl Num2 Message Message One Numl N 2
A Consider The Following Javascript Code Segment Message If Numl Num2 Message Message One Numl N 2 (29.96 KiB) Viewed 37 times
A. Consider the following JavaScript code segment: message = ""; if (numl > num2) { message = message + 'ONE-'; numl = numl num2; } else { message = message + TWO-; if (num num2 <= 100) { message = message + THREE-'; numl = numl / 2; 2 message = message + numl; A. Assuming num1 = 8 and num2 = 8, what is the value of message after executing the above code? B. Assuming num1 = 12 and num2 = 9, what is the value of message after executing the above code? C. Assuming num 1 = 9 and num2 = 12, what is the value of message after executing the above code?

B. Consider the following JavaScript code segment: result = 0; while (num > 0) { result = result + 1; num - num - 3: } A. Assuming num = 2, what is the value of result after executing the above code? B. Assuming num= 10, what is the value of result after executing the above code? C. Identify one value for num that would cause the above code to leave result unchanged (i.e., stillo).