JSFiddle - React, Tailwind, and code Playground
JavaScript
// This doesn't work because of the .0 causing unexpected number.
var jqVersion = $.ui.version;
if (jqVersion < 1.9.0) {
console.log("You currently have v" + jqVersion + ". Upgrade it");
}
// This doesn't throw an error but calculation is incorrect.
var jqVersion = $.ui.version;
if (jqVersion < 1.9) {
console.log("You currently have v" + jqVersion + ". Upgrade it");
}