Strings In Depth6 / 18
Up next

Strings are immutable

const s = "hello";
// toUpperCase builds a NEW string; s is unchanged
const shout = s.toUpperCase();
console.log(s, shout, s.length);
What you're solving

methods return new strings