+ 2
I just need explanation at the function part
Here is my code but i don't know how this function is executed. I just need explanation let num = [5,300,4,2,100,1]; function myFunc(){ num.sort((a,b)=>{return a-b}); console.log(num); } myFunc()
1 ответ