What will be the output of the following JavaScript code? #javascript #shorts #js #quiz

preview_player
Показать описание
What will be the output of the following JavaScript code? #javascript #shorts #js #quiz

✅ Correct Answer:
B) [1, 2, 3, 4]

🧾 Explanation:
a and b reference the same array in memory.

So, printing a will show the modified array.

#coding #javascript #js #webdevelopment #youtubeshorts #reactjs #quiz #interviewprep #codebypc #javascriptforbeginners
Рекомендации по теме
join shbcf.ru