array to string with brackets code example Example: Convert array to string while preserving brackets JSON.stringify(ARRAY);