The mystery function defined below is intended to set the variable result to the largest of three number values passed to the parameter variables. The function does not work as intended. function mystery(num 1, num2, num3){ var result; if (num1 > num2 && num2 > num3){ result = num1; } else{ if (num2 > num3 && num2 > num 1){ result = num2; } else { result = num3; return result; Which call to mystery confirms that the function is not written correctly
1. mystery(1,1,1);
2. mystery(3,5,5);
3. mystery(1,3,2);
4. mystery(5,5,3);