join()
Glues a list of strings into one string with a separator between them.
What does join() do in JavaScript?
join() — Glues a list of strings into one string with a separator between them.
const words = "tea coffee".split(" ");
const label = words.join(" & ");
Level: Apprentice · More JavaScript terms at this level
Updated