Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add the first file
  • Loading branch information
abdellatifketoun committed Jan 13, 2020
commit b9eb54fa222b8b540c40c9b884ae44735ae26898
6 changes: 6 additions & 0 deletions Week2/homework/js-execices/removeComma.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict'
let myString = "hello,this,is,a,difficult,to,read,sentence";
console.log("my string in the first time: "+myString);
console.log("the length of my String is: "+myString.length);
myString = myString.replace(/,/g, " ");
console.log("my string in the second time: "+myString);