in reply to Concatenating Array elements
Wow, thank you all for the help. Sorry about the indices error, I promise, I do know they start at 0, I just wrote this code up quickly for an example and wasn't thinking. Sorry!
I will work with the splice function, since I do want to remove the element being joined with the previous element. My problem was figuring out how to iterate the index numbers because I wasn't sure if they would change or not after the element has been taken out. Thank you for you help!
|
|---|