Put in order · Vibe coding with Claude Code course · Module 8: Slack clone

Sorting: Downloading the CSV file

Order the steps for downloading a CSV file built in the browser, without a server:

Items to put in order

  • Create a Blob with a BOM and the type text/csv
  • After a moment release the address with URL.revokeObjectURL(url)
  • Give it an address with URL.createObjectURL(blob)
  • Set link.download and call link.click()
  • Build the file text with the toCsv function

You can check the correct answer by solving this task in the CodeWorlds game.