+ 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 Réponse
+ 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