Skip to main content

Practice ยท 3 of 3

CSV Export

Write toCsv(records, columns) that RETURNS a CSV string: the first line is columns joined by commas, then one line per record with the value for each column โ€” an empty string when the record is missing that field. Numbers are stringified. No trailing newline.

Difficulty: intermediate

Back to lesson: Practice: Mini Build: Data Explorer