Lesson 5: Transfer Spreadsheet to Document using Google Apps script

function fromSpreadsheetToDocument(){
  var ss=SpreadsheetApp.openById('13tErp8TBzuzM2PzMVv8UJPFRnreWP_uhWz3DEhHOi6A');
  var sheet = ss.getSheets()[0];
  var doc = DocumentApp.create('MyFirstDoc');
  var body = doc.getBody();
  body.insertParagraph(0, 'Amazing Kent 2019'); 
  
  customerDatas  = sheet.getRange(1,1,2,4).getValues();
  body.appendTable(customerDatas);
}