Take small steps, one line at a time
spinWords( “Hey fellow warriors” ) => returns “Hey wollef sroirraw”spinWords( “This is a test”) => returns “This is a test”
return arg.split(‘ ’).map( item => item.length > 4 ? item.split(‘’).reverse().join(‘’): item).join(‘ ’);

--

--

--

Software Dev, qualified lawyer, salesman, pro telemarketer, travel bug, meditator/energy healer, self help enthusiast, aspiring Tech Entrepreneur & family man

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Auto Export the Attachment Information of Incoming Outlook Emails to an Excel Workbook

How to Identify Age from an Image in Ruby

A Multi-Project Roadmap With Plenty of Contribution Opportunities

Assure Newly Release | Mar 2022

Unity Game Development — Creating Modular Power-Ups

sudo make Raspberry Pi a Kiosk

Top 10 ReactJS Development Companies in 2021

Day 24 of the 66 Days of Data

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
2 Minute Tech Reads

2 Minute Tech Reads

Software Dev, qualified lawyer, salesman, pro telemarketer, travel bug, meditator/energy healer, self help enthusiast, aspiring Tech Entrepreneur & family man

More from Medium

Errors are beautiful!

The Three Elements of an Effective Game Development Team

aar.is | Documenting my learnings

Discuss how indigenous life projects engage with development projects.