Javascript prototype function returning function throw the error
<p>I added a function to returning my function by reverse order, later while i call it, i can't get the result. instead the error thrown.</p>

<p>any one tell me the way i do is wrong?</p>

<pre><code>String.prototype.reverse = function(st){
    return st.split('').reverse().join('');
}

var myString = "sample string to reverse";

var reversed = myString.reverse();
</code></pre>

<p>i understand my way is wrong. any one can help me to my function corrected?</p>
