面试题答案
一键面试function checkCondition(a, b) {
return (a!== null && typeof a === 'number' && a > 10 && b === true)? '满足条件' : '不满足条件';
}
你可以使用如下方式调用这个函数:
let a = 15;
let b = true;
console.log(checkCondition(a, b));
function checkCondition(a, b) {
return (a!== null && typeof a === 'number' && a > 10 && b === true)? '满足条件' : '不满足条件';
}
你可以使用如下方式调用这个函数:
let a = 15;
let b = true;
console.log(checkCondition(a, b));