Recognition

No awards yet.

Posts

1 Posts
  • Published Question

    Javascript Sort method

    I found this very informative post on the subject of the Javascript SORT method. I found, however, that VS Code does not recognize the method. This is the error message I got: numbers.sort((a,b) => a - b); ...
    Accepted Answer: That error looks like the type that you get when your numbers variable is not actually typed as an Array. For example, if you have some code where the numbers variable was an object or an integer or a string: javascri...
    1 By elemkey JavaScript