JSFiddle - React, Tailwind, and code Playground

by Jessie Lau

JavaScript

String.prototype.toJadenCase = function () {
   var res = this.split(" ");
    var ss = res.forEach(function(str){return str.slice(0,1).toUpperCase()}); 

};

var str = "How can mirrors be real if our eyes aren't real";
console.log(str.toJadenCase());