+ 1

Protype javaScript

hi,i want a method for String. String.prototype.toJadenCase = function () { //... }; my method return itSelf ,how do it:?

17th Mar 2020, 4:55 PM
Š”Š°Š½ŠøŠøŠ» Š•Š»ŠøŠ½
Š”Š°Š½ŠøŠøŠ» Š•Š»ŠøŠ½ - avatar
1 Answer
+ 3
For example ... String.prototype.toJadenCase = function () { return this.toLowerCase(); // return a copy of *this* object in lower case format }; alert("SOLOLEARN COMMUNITY".toJadenCase());
17th Mar 2020, 5:07 PM
Ipang