I'm trying to change the string value inside its protoype function:
String.prototype.myfunction=function(){
this += "a";
return this;
};
But as it seems I just can't change the value. If I try to run that on the console I just get the error: Uncaught ReferenceError: Invalid left-hand side in assignment
Is it possible to change the strings value? Thanks in advance