Answers for "clear spaces if begining or end js"

1

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
Posted by: Guest on April-02-2021

Code answers related to "clear spaces if begining or end js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language