es6/ by Miklos Nagy November 02, 2018 JavaScript function rs(str){ return str.split('').reverse().join(''); } console.log(rs("This is text"));