FED38. 数组转字符串
描述
请补全JavaScript函数,要求将参数数组转换为字符串输出。HTML/CSS/JavaScript 解法, 执行用时: 1690ms, 内存消耗: 77812KB, 提交时间: 2022-02-08
{"css":"","js":"function _join(array) {\n // 补全代码\n let str='';\n for(let i=0;i<array.length;i++)\n {\n str+=array[i];\n }\n return str;\n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1735ms, 内存消耗: 77772KB, 提交时间: 2021-11-21
{"css":"","js":"function _join(array) {\n // 补全代码\n return array.splice('').join('')\n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1741ms, 内存消耗: 77900KB, 提交时间: 2021-12-01
{"css":"","js":"function _join(array) {\n return array.join('')\n \n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1742ms, 内存消耗: 77904KB, 提交时间: 2021-12-13
{"css":"","js":"function _join(array) {\n // 补全代码\n return array.splice('').join('')\n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1743ms, 内存消耗: 77764KB, 提交时间: 2022-01-21
{"css":"","js":"function _join(array) {\n // 补全代码\n var str=''\n for(var i=0;i<array.length;i++){\n str+=array[i]\n }\n return str\n}","html":"","libs":[]}