A. Consider the following JavaScript code segment: message = ''; if (num > num2) message = message + ONE-'; numl = numi
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
A. Consider the following JavaScript code segment: message = ''; if (num > num2) message = message + ONE-'; numl = numi
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).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!