add a black line data range google script code example
Example 1: google apps script to get spreadsheet range to a variable
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0];
var range = sheet.getRange('A1:D10');
var values = range.getValues();
var selection = sheet.getSelection();
var currentCell = selection.getCurrentCell();
var activeRange = selection.getActiveRange();
Example 2: setValues()
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var values = [
[ "2.000", "1,000,000", "$2.99" ]
];
var range = sheet.getRange("A1:C1");
range.setValues(values);