Created
November 23, 2016 22:37
-
-
Save Reelix/3c8c02fb65de4725753630bf856f626b to your computer and use it in GitHub Desktop.
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
// Function | |
function reverseString(str) | |
{ | |
str = str.split("").reverse().join(""); | |
alert(str); | |
} | |
// Button onclick event | |
reverseString('I want to be reversed :D'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment