FIXED:
There is the following array:
var mainCategory = [elemen1, element2, element3] var secondCategory = [elemen4, element5, element6] var myArray = [ mainCategory, secondCategory] How to sort the array myArray to display in the following order on the page:
- Main category: 1 element, 2 element, 3 element
- Second category: 4th element, 5th element, 6th element
How can this be implemented in javascript.
Thank you in advance
массивin the JavaScript language is missing. Write it in a working form. - user194374