So today I was working on something that I had to push a value into an array, but I mistakenly pushed the array itself into itself 🤫🧐🤫. How more confused could that be...
But then the result was stunning as I wondered what I had done wrong.
The script returned an array of arrays which seems to be infinite.
An array inside an array inside an array... continuously.
Just as that was strange, but it was interesting to see what was happening there.
However I still don't understand how that happened. So I'd be glad if anyone can explain or give me a hint what happened.
Junior developers, especially those that is fresh out of college, can be challenging to manage. In my short experience as an engineering/team manager, I'd like to learn the best practices that the community has experienced. Junior developers, we want to listen to your plights as well.