Answers for "The trim() method removes whitespace from both sides of a string:"

0

The trim() method removes whitespace from both sides of a string:

var str = "       Hello World!        ";
alert(str.trim());
Posted by: Guest on April-23-2021

Code answers related to "The trim() method removes whitespace from both sides of a string:"

Browse Popular Code Answers by Language