23rd December 2022function reverse(text) { return text.split('').reverse().join(''); } console.log(reverse('something')); // gnihtemos console.log(reverse('abcdefg')); // gfedcba console.log(reverse('hash bang code')); // edoc gnab hsah JavaScript Add new comment You must have JavaScript enabled to use this form. Your name Email The content of this field is kept private and will not be shown publicly. Comment CAPTCHAThis question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Math question 8 + 4 = Solve this simple math problem and enter the result. E.g. for 1+3, enter 4. Leave this field blank
Add new comment