Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Sort in javascript

const numbers = [4, 7, 1, 3, 6, 9, 2, 5];
const numbersSort = numbers.sort();
console.log(numbersSort);
//Output:[1, 2, 3, 4, 5, 6, 7, 9]
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #Sort #javascript
ADD COMMENT
Topic
Name
1+6 =