JavaScript automatically converts an array to a comma separated string when a simple value is expected: