DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
albakalymuf profile image
mufadhal • Edited

Javascript :
s1 = s.length > 2 ? s.slice(1,s.length-1):null

Forem Open with the Forem app