Easy peasy reverse words
Return string with n or more lettered words reversed, given that string consists of letters and spaces only. (i.e. n is the word length)
A single line clever solution would be by using regex.
If n is predetermined, like n = 5,
const revWords = (str...
divyajyotiuk.hashnode.dev1 min read
Apoorv Tyagi
Senior Software Engineer | Tech Blogger | !(Chess GM)
Nice Post Divyajyoti Ukirde.
I like these one liners clever tricks😎.