JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<div>
Input: <input type="text" id="tripleIn" /><br />
<input type="button" value="TTTRRRIIIPPPLLLEEE CCCAAAPPPSSS!" onclick="TTTRRRIIIPPPLLLEEE()" /><br />
Output: <span id="tripleOut"></span>
<script>
function TTTRRRIIIPPPLLLEEE() {
var tIn = $("#tripleIn").val();
var tOut = "";
for (var i = 0; i < tIn.length; i++) {
//console.log(tIn[i]);
tOut += tIn[i] + tIn[i] + tIn[i];
}
//console.log(tOut.toUpperCase());
$("#tripleOut").text(tOut.toUpperCase());
}
</script>
</div>
</body>
</html>