A. Consider the following JavaScript code segment: message = ''; if (num > num2) message = message + ONE-'; numl = numi
Posted: Sat May 14, 2022 6:33 pm
A. Consider the following JavaScript code segment: message = ''; if (num > num2) message = message + ONE-'; numl = numi num2; } else message = message + TWO-'; if (numl * num2 <= 100) message = message + THREE-'; numl = numl / 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 num1 = 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., still o).