Strings In Depth9 / 18
Up next

Trim one side

const s = "  padded  ";
console.log(`[${s.trimStart()}]`);
console.log(`[${s.trimEnd()}]`);
What you're solving

trimStart and trimEnd