+ 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()

11th Nov 2021, 7:09 AM
John Delvin
John Delvin - avatar
1 ответ