First of all, sorry about my skills; my coding background is zero and I am just trying to modify an script to fit my needs.
I need to setValues in a two-rows datasheet data range.
The current script sets the values in the first row. How should I modify the script so I can get the data from my 4 values in 2 rows?
Current behaviour:

My go-to behaviour:

Function to run: Print
function Print() {
SpreadsheetApp.getActiveSpreadsheet().getSheetByName("sheet").getRange(1, 1, 1, 2).setValues(Data());
}
function Data() {
var array = [];
var score = "retrieved score";
var time = (2+2);
var device = "device";
var speed = 3+3;
array.push([score,time]);
Utilities.sleep(1000);
return array;
}
getRange()- currently, you only get first row, first column, one row, wo columns (hence the parameters 1,1,1,2)[ [score, time], [device, speed] ]ofcarray.push( [[score,time],[device,speed]] );but I guess I need to redefine the var becausevar array = [];seems a one row-one col matrix. I am unsucessfully trying to define the var :-( .[[ ]]as a whole, of course you should onlypushtwo rows in thearray, not the matrix I mentioned. Please, read up on howpush()method works