text: Print reverse of a string using recursion | Function to print reverse of the passed string ; Driver program to test above function
code: function reverse ( str , len ) { if ( len == str . length ) { return ; } reverse ( str , len + 1 ) ; document . write ( str [ len ] ) ; } let a = " " ; reverse ( a , 0 ) ;