Hi everyone,
I'm trying to concatenate a variable w/in a loop and check it, but I can't get the i to output correctly in line #6
- console.log('Pg Title sync: ' + pgtitle); // shows PG Title sync: b.html
- var porder = '_order';
- console.log('Sync i: ' + i); // shows Sync i: 0
- this[porder + i] = pgtitle + i; // expect this to be _order0 = b.html0
- console.log('Orig order: ' + _order + [i]); // expect this to show Orig order: _order0
Keep getting error: Can't find variable: _order on line #6
How do I write the 'i' at the end of the variable?
Thanks