Last active
October 19, 2023 14:42
-
-
Save mitian233/8f03e72ed9f28ec1c911f850265add25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('readline').createInterface({input: process.stdin, output: process.stdout}).question("Enter a string: ", str => {console.log(str.split("").reverse().join(""))}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment