Reverse String
beginnerUp next
Up next
Output will appear here...
Reversing strings (reading them from right to left, rather than from left to right) is a surprisingly common task in programming.
For example, in bioinformatics, reversing the sequence of DNA or RNA strings is often important for various analyses, such as finding complementary strands or identifying palindromic sequences that have biological significance.
Your task is to reverse a given string.
Some examples:
"stressed" into "desserts"."strops" into "sports"."racecar" into "racecar".A single line of text.
Print the text reversed.
Adapted from the Reverse String exercise on Exercism (MIT License). Original source: Introductory challenge to reverse an input string (https://www.freecodecamp.org/news/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb).
No comments yet. Start the discussion.