Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver1
3いいね 65 views回再生

Coding question asked in Interview #youtubeshorts #shorts #javascript

Coding Interview Question asked in Accenture | Placement Interview question | JavaScript Interview questions


Explanation :-
In JavaScript, arrays are reference types. When we assign let b = a, both a and b refer to the same array in memory.

And, when we modify b[0] = 500, it will reflect the same in a[0], since they both point to the same array.

Thus, output 500,500

#shorts
#javascript
#interview
#youtubeshorts
#coding
#programming

Join us for such kind of Questions with explanation

コメント