Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to remove empty spaces befiore string js

const greeting = '   Hello world!   ';

console.log(greeting);
// expected output: "   Hello world!   ";

console.log(greeting.trim());
//your boy siddhesh Kuakde
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #empty #spaces #befiore #string #js
ADD COMMENT
Topic
Name
6+9 =