On May 26, 12:08 pm, arshad <[email protected]> wrote:
> and yes it pops out alert for me too. but the output is wrong and i have
> set it to output sort of hardcode values (alert("Please Take this Bus
> "+str1Array[0]+","+str1Array[1]+","+str1Array[2]);)
> because the correct output is suppsed to be from resultArray and its not
> working. thus i commented that line, please see: line (87)
> alert("Please Take this Bus
> "+str1Array[0]+","+str1Array[1]+","+str1Array[2]);
> //alert("Please Take this Bus "+resultArray[0]);

Right, so the question is "How do I join the values in an array into a
single string for output?"

alert("Please take this bus: "+resultArray.join(", "))
outputs all the elements of resultArray separated by a comma and a
space.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to