Finally, understanding!

Hello, folks.

Been in a JavaScript personal hell what little self-confidence disappeared and I’ve flopped around like a fish out of water. However, I have, finally, managed to fully understand that Profile Lookup FCC challenge. So, here goes for a walk through:

We start out with x initialised at 0, moving as far as the end of the contacts list and moving on one at a time. Now, if the value of firstNames is a match, and the property value also has a match, you return both the first name and the property.

But if only the property has a match, you return “No such contact”. Then finally, if there’s only a firstName match, you return, “No such property”.

All of this is very similar to the original instructions which I completely over thought. I also didn’t allow myself to thoroughly go through my notes which would have helped a lot. So, while I’m still the odd bit or bob off trying again without notes, I get what my mistakes are and why they’re wrong. So that’s a wee bit of progress.

Next up is a session on Object Oriented and Functional Programming. Then a big, big 50 hour chunk of basic algorithms in ┬álong list of problems to solve. I’m looking forward to the new challenges but I’m concerned I won’t manage them. I feel like I’m hitting a natural boulder of ability that I’m not going to get beyond. I really need to get building another website so I don’t forget those basic skills while I try to obtain a different set of basic skills.

Do you ever doubt you’ll reach your big goal? Do you have any mental tricks to get past those doubts?