DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
kdinnypaul profile image
Dinny Paul • Edited

I think Javascript is the most efficient line liner, I have also added trim :) to take care of extra white spaces

console.log(" String ".trim().slice(1,-1)||null);
Forem Open with the Forem app