Strings In Depth7 / 18
Up next

Join an array

const parts = ["2026", "09", "21"];
// join is the inverse of split
console.log(parts.join("-"));
What you're solving

glue elements with a separator