DEV Community

Discussion on: What was your biggest 'a-ha' moment in coding?

Collapse
 
kazerian profile image
Riya Adhikari • Edited

This was probably 4.5 years back when I was an absolute newbie. And even though I knew that arrays were reference types, I guess, the ramification of doing this arr1 = arr2 had not fully sunk in. And I spent hours trying to debug as to what was messing up my lists. Finally, I got to the point where I saw changes in one array was causing changes in the other. That was my "Ahaa" moment. A moment that truly taught me what reference types meant.