var a = "cat".split(""); a.reverse(); print(a.join("")); // tac