Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 669918f

Browse files
committed
Update Exercise 1 Remove the comma.js
1 parent 97643d2 commit 669918f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use strict";
22
let myString = "hello,this,is,a,difficult,to,read,sentence";
33
console.log("The length of the string is "+myString.length);
4-
let repl=myString.replace(","," ");
4+
let repl=myString.replace(/,/g," ");
55
console.log(repl.split(",").join(" "));

0 commit comments

Comments
 (0)