Skip to content

Commit 5319e4d

Browse files
Completed Task
1 parent cfc5f67 commit 5319e4d

File tree

1 file changed

+3
-0
lines changed
  • Regular-Expressions/Remove-Whitespace-from-Start-and-End

1 file changed

+3
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
let hello = " Hello, World! ";
2+
let wsRegex = /^\s+|\s+$/g;
3+
let result = hello.replace(wsRegex, "");

0 commit comments

Comments
 (0)