Strings In Depth2 / 18
Up next

Strings are immutable

// strings never change in place; methods return NEW strings
const s = "hello";
const upper = s.toUpperCase();
console.log(s, upper);
What you're solving

methods return new strings