I am learning JavaScript for the first time and the deeper I get into the lessons the more I am finding myself sitting, thinking, and trying for hours to get a piece of code right.
Today I am trying to pass a JavaScript course that is simply asking me to remove the first element of an array, return the contents that were removed then “pop” the last number in the array and print to console the numbers that are left in the array. This is so simple but I just can’t get it and I am trying not to cheat by someone giving me the answer. Plus I want the satisfaction of knowing that I did this on my own. I have a very ambitious attitude and a hunger for knowledge that will leave me stagnant for hours at end trying to figure out a problem, it’s like I don’t know when to stop.
My question: is it normal for me to be stuck on something that is simple and how do you take breaks if and when you get frustrated with learning a new language? What do you do to refresh your mind and come back to the problem you are trying to solve, does it help? Am I going to continue to struggle like this as I dig deeper into JavaScript/other programming languages or am I simply just moving too fast ? Any feedback is appreciated!
Thanks!