(1).先转换为数字型在比较
    (2).NaN与与任何数比较都是NaN
    (3).比较结果显示true、false

    1. var a=true;
    2. var b="10";
    3. var c="hello";
    4. console.log(a>b);//先转换为数字型在比较
    5. console.log(a>c);//false NaN与与任何数比较都是NaN
    6. console.log(Number(c)); //NaN

    image.png