Removing letters from words in javascript : <p>I want to output words that have deleted duplicates.
For example:</p>

<pre><code>"thisss iss aa senttence" =&gt; 
expected output = "this is a sentence"
</code></pre>
