jadenTalk

mail@pastecode.io avatar
unknown
javascript
a month ago
300 B
2
Indexable
Never
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;
Leave a Comment