web-profile

javascript reverse string

js:

function reverse(str){
    return str.split('').reverse().join('');
}

Leave a Reply

Your email address will not be published.