How can I make this work:
q = {}
q[0] = new Array()
q[0].push(function()
{
console.log("whatup")
})
q[0]() // currently prints "q[0] is not a function"
Of course, it shouldn't execute until I call it. I tried nesting it inside another function as a return value, but nothing works :(
{}, to create an array of arrays, useq = []instead.