jadenTalk

Anonymous
javascript
02/07/2024 10:53 AM
400 B
16
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