jadenTalk

 avatar
unknown
javascript
a year ago
300 B
5
Indexable
function jadenTalk(text) {
    let result = text.replaceAll(".", "").replaceAll(",", "").replaceAll("!", "").replaceAll("?", "");

    result = result.split(" ").map(word => {
        return word[0].toUpperCase()+word.substring(1);
    });

    return result.join(" ");
}

module.exports = jadenTalk;
Editor is loading...
Leave a Comment