Compare Version Numbers
Compare two version numbers version1 and version2. If version1 > version2, return 1; if version1 < version2, return -1; otherwise, return 0.
A version number is a string containing one or more decimal numbers separated by dots. Each decimal number represents an element in the version number. The numbers may contain leading zeroes, and their positions in the string do matter. For example, 0.1 is less than 1.1, and 1.01 is less than 1.1.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)