Javascript array question

I have an array A filled with N other arrays. How do I insert an array x into the end of the (lets say) third array in A without concatenating them. (The third array of A is supposed to be one element longer).
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Luis PérezConnect With a Mentor Software Architect in .NetCommented:
Can you post some of your code or be more explicit?

Anyway, you can always call the .push method of the array to add anything to it. I.e.:


If you have an array containing other arrays, you should do:


I don't know if this is what you want to do. Hope that helps.
mdolandAuthor Commented:
Perfect, somehow I got it concatenated. Very frustrating.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.