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"

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2021-09-15
  • 2021-05-20
  • 2021-12-25
猜你喜欢
  • 2022-12-23
  • 2021-04-13
  • 2022-12-23
  • 2022-03-09
  • 2022-02-23
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案