SubString/subsequence in javascript
<p>Can anybody help me in formatting the below string to display the final result as "<strong>Mark, Anthony</strong>"  i have been using substring in javascript to format and do we have anything like subsequence to make these format in a single line code?</p>

<pre><code>var res="undefinedMark, Anthony," 
var final = res.substring(9, res.length); // removes undefined
var finalOP = final.substring(0, final.length - 9); // removes the final ,
</code></pre>

<p>thanks</p>
