javascrip reverse text

JavaScript
//more compact way: 
"my example text".split("").reverse().join("");function reverseString(s){
    return s.split("").reverse().join("");
}
reverseString("Hello");//"olleH"
Source

Also in JavaScript: