DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
ujadhav25 profile image
Umesh Jadhav

javascript

(function (str) {
if (str.length <= 2) {
return null;
}
console.log(str.slice(1, str.length - 1));
})('cut me from start and end')

Forem Open with the Forem app