Nobody code with JavaScript?? Also 1 line solution.


  • 0
    V
    var reverseString = function(s) {
        return s.split('').reverse().join('');
    };
    

    I remembered that the code above is a tutorial of v-model directive in Vue.js XD


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.