列表

详情


FED69. 完全等同

描述

判断 val1 和 val2 是否完全等同

原站题解

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

{"css":"","js":"function identity(val1, val2) {\n   if (val1 === val2){\n       return true;\n   } else{\n       return false;\n   }\n}","html":"","libs":[]}

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

{"css":"","js":"function identity(val1, val2) {\n    return val1 === val2\n}","html":"","libs":[]}

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

{"css":"","js":"function identity(val1, val2) {\n    return val1 === val2\n}","html":"","libs":[]}

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

{"css":"","js":"function identity(val1, val2) {\nreturn val1===val2?true:false;\n}","html":"","libs":[]}

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

{"css":"","js":"function identity(val1, val2) {\n   return val1===val2;\n}","html":"","libs":[]}

上一题