Example result:"string s found in pages 0,3,5,6,9"
I have the code, which i'm pretty sure is correct..
at the start i have
then a for loop.. then if c=1, x = x + "," + i
then an alert saying ('"' + s + " found " + "in pages " + x + '"');
It seems to work. However, the string result starts with a comma, the result shows
"string s found in pages ,0,3,5,6,9"
How do i get rid of the comma!? I have tried unsucessfully as i don't know why it is there.
Thank you for reading and any help! Hope it makes sense.