jadenTalk
unknown
javascript
2 years ago
300 B
8
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