What is the output when executing the code above?

There is a new requirement for a developer to implement a currPrice method that will return the current price of the item or sales.

What is the output when executing the code above?
A . 50
Uncaught TypeError: saleItem,desrcription is not a function
50
80
B. 50
80
50
72
C. 50
80
72
D. 50
80
Uncaught Reference Error:this,discount is undefined 72

Answer: B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments