var val = 'smtg'; console.log('Value is ' + (val === 'smtg') ? 'Something' : 'Nothing'); // A. Value is Something // B. Value is Nothing // C. NaN // D. other
答案是D
输出
"Something"
var val = 'smtg'; console.log('Value is ' + (val === 'smtg') ? 'Something' : 'Nothing'); // A. Value is Something // B. Value is Nothing // C. NaN // D. other
答案是D
输出
"Something"