It looks like you're new here. If you want to get involved, click one of these buttons!
That won't work :) You're confusing Array and Object. Here's how I'd write that:
// better than new Array() for so many reasons
var list = [];
for (var i = 0; i < 10; i++) {
// here we're pushing an object onto our array
list.push({
title: createTitle(i),
id: i
});
}
var menu = new joMenu(list);
Now, if your menu is static, you could declare it directly inline, as in the example in the documentation for joMenu.
Also note that the id property is optional. If you do not specify one, the index from the array of menu items is passed instead to any subscribers (again, see the example in the docs for joMenu for a couple use cases).
Hope this helps!