在条件的比较操作符两边的值上加上运算符
示例
var pass = 50; var score = 90; var hasPassed = score >= (pass*2);//使用表达式
var el = document.getElementById('answer'); el.innerHTML = 'Level passed:'+hasPassed