Also, what do you guys think about this? Sometimes I cant figure out a JS problem so I go and check the hints or the solution, Am I really learning if I do that or, how long should I take trying to solve the problem before going to hints/problem solved.
Thanks for reading I hope you all guys are having a good day and I hope you all get where you want to go with coding.
There is no harm looking at hints or solutions coz you are still in the process of learning. But if you are a self-learner, one suggestion would be to pair it up with other resources like w3schools.com or YouTube videos coz programming is easy to begin with, but as topics advance it can be hard sometimes, unless there is someone to show you what to do, where and exactly what is what. And that is where videos can help.
fCC itself has many such video tutorials on different topics, if you go to search!
Just as @skamat said there’s no harm provided you’ve tried solving the problem first. You’d be harming yourself by looking for the solutions first and not attempting to think. It’s perfectly okay to get stuck.
If you have tried all you can and still not getting any answers, you can seek solution in two ways.
You can try to use online resources to understand the problem and how other people were able to come up with an algorithm that solves it or ask other devs to give hints on parts you might have missed. Then approach the problem again. This helps stick the solution to the brain and would come in handy if such problems arise later.
Also developers some times find answers when we take a break from coding. Trust me, IT WORKS! At the time you’re coding your brain is really busy and might not remember or come up with ideas, but take a walk, drink a shake , eat some ice-cream:icecream: and while doing that stream of solution gushes in your brain cause your brain keeps that problem and tries solving it in the background.
I hope this helps and I feel you’d be a great programmer. Happy coding !
Looking at hints is fine - that’s what they are there for. But I would avoid looking at the solution before you have come up with your own.
Reading code and writing code are two different skills… The point of the challenges isn’t to get the answer, but to practice solving problems and writing code. You have lots of opportunities to practice reading solutions afterwards (and it’s a good idea to look at other solutions after you write yours), but you only have one chance to practice coming up with the solution on a particular problem.
If you get stuck, you can post your code and ask questions here. That way, we can give you more specific hints about your code.