+ 1
Protype javaScript
hi,i want a method for String. String.prototype.toJadenCase = function () { //... }; my method return itSelf ,how do it:?
1 ответ
+ 3
For example ...
String.prototype.toJadenCase = function ()
{
return this.toLowerCase(); // return a copy of *this* object in lower case format
};
alert("SOLOLEARN COMMUNITY".toJadenCase());