Was speaking with a developer today and he said it was possible to operate on a string literal like this using prototype. Can anyone explain how that might be possible?
var myVar = "some string literal".reverse();
alert(myVar);
and i'd need to implement some reverse method to receive the alerted output ("literal string some");
(not looking for the algorithm, just how i can operate on a string literal like this)