For this question, use this data: myFunc = function (x, y = 2) {z = 7 Z+x^2+y } What is the output of myFunc(2)? O 13. O An error, y is undefined. O Nothing, we have to assign it as a vari O 9.

Essentials of Business Analytics (MindTap Course List)
2nd Edition
ISBN:9781305627734
Author:Jeffrey D. Camm, James J. Cochran, Michael J. Fry, Jeffrey W. Ohlmann, David R. Anderson
Publisher:Jeffrey D. Camm, James J. Cochran, Michael J. Fry, Jeffrey W. Ohlmann, David R. Anderson
Chapter5: Probability: An Introduction To Modeling Uncertainty
Section: Chapter Questions
Problem 19P
icon
Related questions
Question
For this question, use this data:
myFunc = function (x, y = 2)
{z = 7
Z+x^2+y
}
What is the output of myFunc(2)?
O 13.
O An error, y is undefined.
O Nothing, we have to assign it as a vari
O 9.
Transcribed Image Text:For this question, use this data: myFunc = function (x, y = 2) {z = 7 Z+x^2+y } What is the output of myFunc(2)? O 13. O An error, y is undefined. O Nothing, we have to assign it as a vari O 9.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Essentials of Business Analytics (MindTap Course …
Essentials of Business Analytics (MindTap Course …
Statistics
ISBN:
9781305627734
Author:
Jeffrey D. Camm, James J. Cochran, Michael J. Fry, Jeffrey W. Ohlmann, David R. Anderson
Publisher:
Cengage Learning
College Accounting, Chapters 1-27
College Accounting, Chapters 1-27
Accounting
ISBN:
9781337794756
Author:
HEINTZ, James A.
Publisher:
Cengage Learning,
Century 21 Accounting Multicolumn Journal
Century 21 Accounting Multicolumn Journal
Accounting
ISBN:
9781337679503
Author:
Gilbertson
Publisher:
Cengage
Century 21 Accounting General Journal
Century 21 Accounting General Journal
Accounting
ISBN:
9781337680059
Author:
Gilbertson
Publisher:
Cengage