JSFiddle - React, Tailwind, and code Playground

by Kawaljit Singh

JavaScript

(function(){
//this is script to write string backwards
var y = " ";
var newDiv = document.createElement("div");
var getValue = prompt("Enter Your Text Here");

for(i = 1;i>=getValue.length;i++){
	y = y + getValue[i];
};

newDiv.innerHTML = y;
document.body.appendChild(newDiv);

})();