Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js sort letters

letterArr.sort();

// OR

letterArr.sort( (a,b) => {
  return a<b ? -1 : 1;
});
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #sort #letters
ADD COMMENT
Topic
Name
2+3 =