system — 2011-06-29T15:47:33-04:00 — #1
What am I doing wrong I want to add an Array to a string, but the alert won't write the array?
var placestosee = ['newyork','people','laundry','stores'];
alert('One place to see is the'+'placestosee'+);
scallioxtx — 2011-06-29T16:41:37-04:00 — #2
Don't put the array element in quotes. You should also remove the + add the end, as it's invalid (comparable to me asking you "How much is 2 +" without ever finishing that sentence)
alert('One place to see is the' + placestosee);
system — 2011-06-29T17:31:25-04:00 — #3
Ahh, I see thank you. What about a space between the string and the array, currently the words are formed together.
scallioxtx — 2011-06-29T18:07:46-04:00 — #4
Just put in an extra space in the string right between
system — 2011-06-29T18:55:35-04:00 — #5
Thanx, believe it or not that last problem was bothering me I couldn't figure it out.