列表

详情


FED66. 且运算

描述

返回参数 a 和 b 的逻辑且运算结果

示例1

输入:

false, true

输出:

false

原站题解

HTML/CSS/JavaScript 解法, 执行用时: 870ms, 内存消耗: 77908KB, 提交时间: 2021-02-21

{"css":"","js":"function and(a, b) {\n    var flag = false;\n    if(a && b) {\n        flag = true;\n    }\n    return flag;\n}","html":"","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 871ms, 内存消耗: 77860KB, 提交时间: 2020-12-25

{"css":"","js":"function and(a, b) {\n    return a && b\n}","html":"","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 872ms, 内存消耗: 77900KB, 提交时间: 2020-11-23

{"css":"","js":"function and(a, b) {\n    return a && b\n}","html":"","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 873ms, 内存消耗: 77956KB, 提交时间: 2020-12-29

{"css":"","js":"function and(a, b) {\n     return a&&b\n}","html":"","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 874ms, 内存消耗: 77836KB, 提交时间: 2020-12-28

{"css":"","js":"function and(a, b) {\n    return !!(a && b)\n}","html":"","libs":[]}

上一题