Implement and export as default a function that reverses a string backwards using recursion.
import reverse from './reverse'; reverse('str'); // rts reverse('hexlet'); // telxeh
Try to solve this problem using a recursive process. To do this, you will need the
- To get a string length use the
- To get a string's substring use the
For full access to the challenge you need a professional subscription.
A professional subscription will give you full access to all Hexlet courses, projects and lifetime access to the theory of lessons learned. You can cancel your subscription at any time.