Javascript Interview question - Part 93 #shorts #coding #reactjsinterviewquestions #javascript

preview_player
Показать описание
Learn 175+ javascript interview questions from link mentioned in bio.

#javascript #reactjs #frontend #angular #interview #javascriptinterview
Рекомендации по теме
Комментарии
Автор

They were printing arrA not arrB 😂,
So the answer will be [1, 2]

Silentkiller-pbvp
Автор

But with the shallow copy it will alter the array right ?? So, if we change the value of the original array of the copied array it will reflect the changes in shallow copy contrasts to deep copy. So basically I think because of the third line the value 42 will also be assigned to arrayA and [42, 2] will be returned as an output.please re-upload the short with proper details.

sahajranipa