Question: Consider the JavaScript code segment below. function mystery ( num 1 , num 2 ) { var total = 0 for ( var i =
Consider the JavaScript code segment below.
function mysterynum num
var total
for var i ; num; i
total total num;
return total;
document.writemystery
;
document.writemystery
;
a What will be displayed by document.writemystery
;
b What will be displayed by document.writemystery
;
c Briefly explain the purpose of the function mystery.
LABEL YOUR ANSWERS a b and c
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
