how to convert a set to a string in js code example Example: how to convert set to a string in js [...foo].join(' ')