var Top = 5;
for(var i=0;i<3;i++) {
var Model = createView("First ModelView", Top, 135);
}
Initially the Top = 5, for each iterating the Top should get added
with another +50, so that the next time it should create an Model Object with
Top 55 and so on…
What i tried
var Top = 5;
for(var i=0;i<3;i++) {
var Model = createView("First ModelView", Top, 135);
Top+=50;
}
Just try this
(assuming you just want to have a 50 increment with a 5 base for first case)