let myString = "hello,this,is,a,difficult,to,read,sentence";
console.log(myString);
var length = myString.length;
console.log (length);
//Find a way to remove the commas from the string and replace them with spaces:
myString = "hello this is a difficult to read sentence";
console.log (myString);
This is not the expected solution.
Try to use split and join instead.
We prefer methods that can be applied over and over again, with different data.