Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Sort List in JavaScript

let name = ["Daniyal","Ahmed","Irsam","Zulfaqar","Tariq"];
for(let i=0;i<name.length;i++){
    console.log("Name's Unsorted "+name[i]);
}

console.log("...............................Orignal Array..................................");
for(let i=0;i<name.length;i++){
    console.log("Name's Sorted: "+name[i]);
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Sort #List #JavaScript
ADD COMMENT
Topic
Name
4+2 =