Skip to content

1-3-1 #1

@ChristerNilsson

Description

@ChristerNilsson

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.

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions