const parts = ["2026", "09", "21"]; // join is the inverse of split console.log(parts.join("-"));
glue elements with a separator