Tasked with developing a function in Javascript which takes as input 2 strings, version1 and version2. These strings will follow a standard version format (for example 2.3.100.1 or 1.7). The function should take these two versions and return -1 when version1 is less than version2, return 0 when they are equal, and 1 when version1 is greater than version2.
Anónimo
I coded it successfully but did not move on to the next round.