So, I have been asked to rephrase my question post. I actually thought it would make sense if I shared a picture of what I need to accomplish. My apologies for not knowing the format. But anywho ...
Required: I have a spreadsheet file and a user enters a value in a specific cell (see picture below). I want that value be stored along with the current date in a two dimensional array.

What my code does: This code is (1) Using a PropertiesService to store a value globally (2) Accepting user input in H3 cell and is updating J3 cell with a date of format mm/dd and appending the user input. For e.g., if user inputs 4 in H3 and current date is 8/29/2019, then J3 will display "8/29::4" (3) This code also adds a comment with the above value in H3
Error/Issue (1) When I try to declare an array in the onEdit function and attempt to write something into it, it is spitting this error:
TypeError: Cannot read property 'push' of undefined at onEdit(Code:21:29)
var scriptProperties = PropertiesService.getScriptProperties();
scriptProperties.setProperty('i', 0);
function onEdit(e){
if (e.range.getA1Notation() == "H3")
{
var difference = isNaN(e.value) ? 0 : Number(e.value);
var date = (new Date());
var monthValue = date.getMonth();
var dateValue = date.getDate();
var wholeValues = [];
monthValue = monthValue+1;
dateValue = dateValue-1;
var logTimestamp = monthValue+"/"+dateValue;
e.range.getSheet().getRange("J3").setValue(logTimestamp+"::"+difference+";");
e.range.setNote(logTimestamp+"::"+difference+";");
var arrayIndex = Number(scriptProperties.getProperty('i'));
wholeValues[arrayIndex].push("Sample Data");
arrayIndex = arrayIndex + 1;
Logger.log("wholeValues size is " +wholeValues.length);
}
}
onEdit(e)trigger