题解 | #创建数组#
创建数组
https://www.nowcoder.com/practice/04a6204cd4cf42dd8983c000110ada7e
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
</head>
<body>
<script type="text/javascript">
const _createArray = (number) => {
// 补全代码
return Array(number).fill(number)
}
</script>
</body>
</html>
<html>
<head>
<meta charset=utf-8>
</head>
<body>
<script type="text/javascript">
const _createArray = (number) => {
// 补全代码
return Array(number).fill(number)
}
</script>
</body>
</html>