JSFiddle - React, Tailwind, and code Playground
by ninty9notout
HTML
<html>
<head>
</head>
<body>
<input type="text" id="string">
<input type="button" value="click me mother licker!" onclick="sexyfunction(document.getElementById('string').value);">
</body>
</html>
JavaScript
function sexyfunction(str) {
var newString = "";
for (var i = str.length - 1; i >= 0; i--) {
str += str[i];
}
window.alert(str);
}