← Back to JavaScript exercises

13. Sort an Array

Result appears here
output.textContent=[5,1,4,2,3].sort((a,b)=>a-b).join(", ");