Say for example I have a table. In this table I want no more than 20 objects in the table. When a new object arrives Backendless checks to see how many objects are in this table and sees 20 objects. I want to create a recursive function that will create a new table to put what would have been the 21st object in that table and the number in the function name to be 1 more than the last. How would I go about doing that?
function newGame0(args) {
args = args || {};
this.Number = args.Number || 0;
}function newGame1(args) {
args = args || {};
this.Number = args.Number || 0;
}
function newGame2(args) {
args = args || {};
this.Number = args.Number || 0;
}
I’m aware of eval and would prefer not to use it