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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

A Consider The Following Javascript Code Segment Message If Num Num2 Message Message One Numl Numi 1
A Consider The Following Javascript Code Segment Message If Num Num2 Message Message One Numl Numi 1 (73.42 KiB) Viewed 36 times
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!
Post Reply