1. // var value = (code) ? block:block2
    2. // code == true 输出block
    3. // code == false 输出block2
    4. var a = (10>5)?'true':'false'
    5. console.log(a);