I want to know how to increment a number to a variable in JS every time it goes through the while loop. For example:
var num2 = 1;
while(num2 < num){
new google.maps.Marker({
position: posicao(incrementar valor de num2 aqui),
title: nome(incrementar valor de num2 aqui),
map: map
});
num2++;
}