标签: javascript
function areBothTrue(bool1, bool2) { } console.log(areBothTrue(true, false), '<-- should be false'); console.log(areBothTrue(true, true), '<-- should be true');
答案 0 :(得分:0)
function areBothTrue(bool1, bool2) { return bool1 && bool2; }