Sort the number Array in JavaScript

Опубликовано: 02 Ноябрь 2024
на канале: codewithvenkats
2
0

Hello Dev's in this video I spoke about the Sort the number Array in JavaScript.


const NumberArray = [10, 9, 7, 8, 3, 6, 4, 1];
console.log(NumberArray.sort((a, b) = a - b));
console.log(NumberArray[0]);

#javascript, #html, #css3, #interview