Hari Krishna Anemharikrishna.hashnode.dev·Jan 20, 2022JavaScript: Convert last character of each word to uppercasefunction changeLastCharacterToUpperCase (str) { return str.split(" ").map( (item) => { return item.slice(0, -1) + item[item.length - 1].toUpperCase(); }).join (" "); } console.log(changeLastCharacterToUpperCase('hello world welcome testing a...last character