var val = ‘smtg’;
console.log(‘Value is’ + (val === ‘smtg’) ? ‘Something’ : ‘Nothing’);
选(A)
A: Value is Something
B: Value is Nothing
C:NaN
D: other
var val = ‘smtg’;
console.log(‘Value is’ + (val === ‘smtg’) ? ‘Something’ : ‘Nothing’);
选(A)
A: Value is Something
B: Value is Nothing
C:NaN
D: other