Skip to main content

Practice · 3 of 3

CSV Export

CHALLENGE
Difficulty: intermediate+25 XP

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.

Back to lesson: Practice: Mini Build: Data Explorer