Skip to content

Instantly share code, notes, and snippets.

@theVDude
Created April 6, 2018 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theVDude/c6473b59fa9c63cbc4e7a279bf27423c to your computer and use it in GitHub Desktop.
Save theVDude/c6473b59fa9c63cbc4e7a279bf27423c to your computer and use it in GitHub Desktop.
hue
<html>
<head>
<script type="text/javascript">
let reverseIt = str => {
return str.split('').reverse().join('');
}
let clicked = () => {
alert(reverseIt(document.getElementById('str').value));
}
</script>
</head>
<body>
<input id="str">
<button id="btn" onClick="clicked();">click me!</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment