Created
April 6, 2018 16:00
-
-
Save theVDude/c6473b59fa9c63cbc4e7a279bf27423c to your computer and use it in GitHub Desktop.
hue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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