dirtyholmes
Programmer
I am new to writing javascript code and i am trying to find a way of comparing software version numbers.
I have some code that needs to check a version of software on the users PC against the recomended version, and find out if the version on the PC is more recent.
eg
var minimumReqVers = 6.00.00.3
( the result of my check on the PC software version could be 6.0.3213 )
so effectively i have
var PCVersion = 6.0.3213
How therefore can i compare these two values to find which is the most recent, which in this example is the PC version.
I have some code that needs to check a version of software on the users PC against the recomended version, and find out if the version on the PC is more recent.
eg
var minimumReqVers = 6.00.00.3
( the result of my check on the PC software version could be 6.0.3213 )
so effectively i have
var PCVersion = 6.0.3213
How therefore can i compare these two values to find which is the most recent, which in this example is the PC version.