Sorry for the newb question. But I have been trying for hours.
var dbruns = {}; // namespace
dbruns.dbstuff = {
var nameslistresult = [];
This gets an error, unexpected identifier. When I put it at the dbruns level
var dbruns = {}; // namespace
var nameslistresult = [];
dbruns.dbstuff = {
It gets past there, but then
console.log(typeof dbruns.nameslistresult);
console.log(typeof dbruns.dbstuff.nameslistresult);
both return undefined.
I really have no idea what is going on here, and any help would be appreciated.
dbruns.dbstuff = {nameslistresult:[] };ordbruns.dbstuff = {};dbruns.dbstuff.nameslistresult = [];Have you already tried to read documentation or tutorials before "trying for hours"?