I've sorted an array of integers and have tried to display it in html but i do not know how to do it.
I've already tried to print the elements without using the functions display
Expected Result: 2,3,4,5,8
Current result: undefined
When I use the Chrome console, it works perfectly! There is nothing wrong with this sort code.