Skip to content

Instantly share code, notes, and snippets.

@mitian233
Last active October 19, 2023 14:42
Show Gist options
  • Save mitian233/8f03e72ed9f28ec1c911f850265add25 to your computer and use it in GitHub Desktop.
Save mitian233/8f03e72ed9f28ec1c911f850265add25 to your computer and use it in GitHub Desktop.
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