I am currently troubleshooting the following code:
var spacetime = [];
spacetime.push({
Title : [],
Space : [],
Time : []
});
if (doSelect('Location').length > 0 && doSelect('Date').length > 0) {
for(var i = 0; i < dateText.length; i++) {
d += dateText[i] + ' ';
}
if(location.match(regex)) {
spacetime[0].Title.push("Hello");
spacetime[2].Time.push(d);
});
}
};
However, when I check the console, I receive the error message:
Cannot read property 'Time' of undefined
Interestingly, d
is being output correctly despite this error.