1function checkAge(data) { 2 if (data === { age: 18 }) { 3 console.log('You are an adult!') 4 } else if (data == { age: 18 }) { 5 console.log('You are still an adult.') 6 } else { 7 console.log(`Hmm.. You don't have an age I guess`) 8 } 9} 10 11checkAge({ age: 18 })
本题为“单选题”