Populating another array from array - Javascript

后端 未结 8 1587
我寻月下人不归
我寻月下人不归 2020-12-29 22:12

Very simple thing I am trying to do in JS (assign the values of one array to another), but somehow the array bar\'s value doesn\'t seem affected at all.

<
8条回答
  •  隐瞒了意图╮
    2020-12-29 22:50

    In your code, the variable arr in the for loop is not the same as your original array ar: you have one too many r.

提交回复
热议问题