Skip to content

Instantly share code, notes, and snippets.

@pjcodesjs
Created March 12, 2023 04:44
Show Gist options
  • Save pjcodesjs/3e4eab0b562b7c38d6ec0c4a2e79aae1 to your computer and use it in GitHub Desktop.
Save pjcodesjs/3e4eab0b562b7c38d6ec0c4a2e79aae1 to your computer and use it in GitHub Desktop.
const originalStr = 'Hello world';
const reversedStr = reverseWords(originalStr);
console.log(reversedStr); // Output: 'world Hello'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment