String.prototype.toJadenCase = function () {
const words = this.split(' ')
for(let i = 0; i < words.length; i++){
const wordArr = words[i].split('')
wordArr[0] = wordArr[0].toUpperCase()
words[i] = wordArr.join('')
}
return words.join(' ')
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter