JSFiddle - React, Tailwind, and code Playground

by frogggeee McFrogggeee

HTML

<!DOCTYPE html>
<html>
<head>
<body>
<h1>a thing that makes whatever you type backwards</h1>
<p>by frogggeee</p>
<script>
	let word = prompt ("whatever you type will be converted backwards");
  let backwardsWord = "";
  let back = [];
  let thing = word.length;
  let i = 0;
  for (i = 0;i < word.length + 1;i++) {
  	back.push(word.charAt(thing));
  	thing = thing - 1;
  }
  thing = 0;
  for (i = 0;i < back.length;i++) {
  	
  }
  alert (backwardsWord);
</script>
</body>
</head>
</html>