- Joined
- Aug 31, 2022
- Messages
- 8
- Reaction score
- 0
I attached the file I am working on.
I am trying to number each result so that it says:
City #1 is...
City #2 is...
City #3 is...
... and so on.
I was thinking that I had to write something inside this for loop?
for (var i = 0; i < input.length; i++) {
var a = input;
r = r + "City #" + "???" + "is " + a.value + ("<br>");
}
I am working with Notepad++.
I am trying to number each result so that it says:
City #1 is...
City #2 is...
City #3 is...
... and so on.
I was thinking that I had to write something inside this for loop?
for (var i = 0; i < input.length; i++) {
var a = input;
r = r + "City #" + "???" + "is " + a.value + ("<br>");
}
I am working with Notepad++.