FED32. 对象数字
描述
请补全JavaScript函数,要求将数字参数转换为对象的形式返回。HTML/CSS/JavaScript 解法, 执行用时: 1680ms, 内存消耗: 77816KB, 提交时间: 2022-02-09
{"css":"","js":"function _numbertoobject(number) {\n // 补全代码\n return {number} \n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1683ms, 内存消耗: 77804KB, 提交时间: 2022-02-09
{"css":"","js":"function _numbertoobject(number) {\n // 补全代码\n return new Object(number)\n \n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1734ms, 内存消耗: 77788KB, 提交时间: 2021-11-30
{"css":"","js":"function _numbertoobject(number) {\n // 补全代码\n return {'number':number}\n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1737ms, 内存消耗: 77780KB, 提交时间: 2021-12-04
{"css":"","js":"function _numbertoobject(number) {\n // 补全代码\n return {number: number};\n}","html":"","libs":[]}
HTML/CSS/JavaScript 解法, 执行用时: 1738ms, 内存消耗: 77772KB, 提交时间: 2021-11-29
{"css":"","js":"function _numbertoobject(number) {\n // 补全代码\n const num = number+''\n return {num}\n}","html":"","libs":[]}