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"
2023-01-15 07:48:07
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"
下一篇:第五周java学习总结