Using getDataAsCSV Funtion. Click on the button to view the data as CSV in an alert box.
The above sample showcases how to use getDataAsCSV function in JavaScript. Click here to know more on how the code of this example works.