what does trim method do?
“Remove whitespace from both sides of a string:example:var str = “” Hello World! “”;alert(str.trim());alert box will say: Hello World!”
The goto resource for studying materials
what does trim method do?
“Remove whitespace from both sides of a string:example:var str = “” Hello World! “”;alert(str.trim());alert box will say: Hello World!”