Created
March 12, 2023 04:44
-
-
Save pjcodesjs/3e4eab0b562b7c38d6ec0c4a2e79aae1 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
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