I had to build a list for lab 30 and sort it alphabetically. The list that I made was a list of matches I played or played. I have sorted matches names with games.sort(((a,b)=>strip(a)> strip(b)? 1:-1) the first name tested in alphabetical order is higher than the second. The positive and negative numbers are what the task of sorting uses to sort objects.
I've done this lab to know more features of javascript. I learned how to use the sorting function that used an arrow function to sort the products in this laboratory and I also practiced using the conditional operator. Some recommendation I'd offer (it's been followed in the lab) is to use the conditional operator instead of if other statements because it's much more effective and is the abstract version of if other statements.
I've done this lab to know more features of javascript. I learned how to use the sorting function that used an arrow function to sort the products in this laboratory and I also practiced using the conditional operator. Some recommendation I'd offer (it's been followed in the lab) is to use the conditional operator instead of if other statements because it's much more effective and is the abstract version of if other statements.
Comments
Post a Comment