You can use the replace() method to replace multiple spaces with a single space in a string…
join() method in javascript
2 Articles
2
There are several ways to reverse a string in JavaScript. One way is to convert the string…