var website_str = ' WwwPakainfocom '; console.log(website_str.trim());
website_str.replace(/\s+/g, ''); //OR website_str.trim()
Remove ALL white spaces from text
console.log(' j k l m n o p '.replaceAll(' ',''));
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.