Question: The following code Number.prototype.toCurrencyString = function () { return $ + this.toFixed(2); } a adds a cascading method to the Number object b adds a
The following code Number.prototype.toCurrencyString = function () { return "$" + this.toFixed(2); }
| a | adds a cascading method to the Number object |
| b | adds a cascading property to the Number object |
| c | returns a Number object |
| d | creates a method that can be called from a variable that holds an integer or floating-point number |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
