题解 | #新数组#
https://www.nowcoder.com/practice/bee781a51bc944bbad20f3c2ca798890
<script type="text/javascript">
const _delete = (array,index) => {
// 补全代码
var newArr=[];
for(var i=0;i<array.length;i++){
if(i != index){
newArr.push(array[i]);
}
}
return newArr;
}
</script>
</body>
查看26道真题和解析