The following code Number.prototype.toCurrencyString = function () { return \"$\
ID: 3743672 • Letter: T
Question
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
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
Explanation / Answer
Number.prototype.toCurrencyString = function () {
return "$" + this.toFixed(2);
}
Here we are adding a cascading metod to Number object
(a)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.