Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Loops, Arrays and Objects Simplify Repetitive Tasks with Loops The Refactor Challenge Solution

Alex Thomas
Alex Thomas
4,247 Points

I was completely lost on the refactor challenge. Should I just quit this whole endeavor? Anyone else totally lost?

I was utterly, hopelessly, completely lost on the refactor challenge. I'm wondering if this javascript gets any easier because I am feeling like an absolute moron right now and am wondering if i'll ever be able to land a full time job doing this. Anyone else out there experienced the same thing?

Alex Thomas
Alex Thomas
4,247 Points

I definately appreciate everyone's support. Jesus I sound like a sissy! Anyway, I think part of my problem is lack of a study routine. I've now dedicating at least 2 hrs in the morning, every morning, to study as I'll be fresh. I am on array's now and it makes sense so far. Maybe it's just the subject matter, or maybe it's getting easier in general, IDK. I will stick with it but man, I find myself wanting to start the entire front end track over and start fresh. I am going back over JS basics in my down time to try and get a better grasp of the material. And Leslie, notes are definitely a great idea. Thanks again everyone. Maybe I'll see you out in the world one day.

SAMUEL LAWRENCE
SAMUEL LAWRENCE
Courses Plus Student 8,447 Points

Totally agree with Leslie Wolfe . Many times I feel like an imbecile so many times. But I stick with it and what I do is exactly what Leslie does. I take very detailed notes with notes app and I read over them when I feel stuck. In the beginning it was difficult too. now I'm able to complete a lot of the challenges and I try not to ever look at the solution before giving it a fair shot. One time I spent 3 days tackling a challenge. I finally got it I was so happy and it only reaffirmed my commitment. It was the random number generator the lastt challenge. Also when you feel like you're stuck and getting faustrated, STOP! go do something else then come back to it when your head is clear. This helps a lot. Some times I feel like I should get it right away, don't do that. Keep at it. You're not the only one, I'm sure of it. Good luck.

Did anyone else notice that when trying to mention someone's name and you use the '@' symbol and the drop down menu with name suggestions comes up it appears below some of the replies? I think it's a z-index issue. Dave McFarland and Nick Pettit should check it out.

7 Answers

Leslie Wolfe
Leslie Wolfe
8,700 Points

Hi Alex, I am a beginner at this JavaScript stuff and I have to admit, I feel the same way. I'm finding myself lost too, but I started taking really detailed notes and so I just start from there, composing something...anything, and then as I think on it, it starts to take shape. I did take a tiny peak at a peer's code from posted questions on this challenge, (which I don't think was correct) but it gave me ideas. I didn't do exactly as Dave did when he solves this challenge, but I made it work which equaled success for me. Sounds to me like everyone is super confused at some point. I think you should stick with it.

We all get lost all the time. It doesn't matter what level you are at, everyone trying to do something new gets lost. That's why there are sites like stack overflow, and other tutorials out there.

To answer your question; does JavaScript get easier? There really isn't harder or easier. It's just a different problem set to solve. Do things get more complex, of course, but as your skillset grows so does the level of problem you are solving. There will be challenges that at first you will not understand, but in the end solve them and become more confident.

In the refactor challenge what are your issues do you have? Did you try and break down the problem step by step? Is it the syntax you are have issue with? Let us know what issues you are having and lets work on them.

Alex Thomas
Alex Thomas
4,247 Points

I am having issues with all of. I didn't grasp basic material well enough so I'm going back over it and hopefully that'll help. Thanks a lot for you response and your time.

I hear ya and I think going back to review is a great way to go about it. A good way to learn is by doing and making mistakes and finding answers even if it takes days to do.

Julio Soto
Julio Soto
4,544 Points

I'm taking it pretty slow but I'm moving forward. Keep trying and be patient.

Sam Donald
Sam Donald
36,305 Points

Never give up, never surrender!

When you feel mentally strained, challenge, and confused that's when your brain is actually in the process of learning. It's the equivalent of sore muscles when you workout. So just stay in the game. ??

  • But you can take breaks
ahmad khan
ahmad khan
3,479 Points

it's ok in the beginning after a while it will become a second nature to you so don't loose heart and keep practicing you will eventually gets there

This is my second time around for this unit. I'm determined to have a good understanding before I move on. I'm also doing another course from a different on-line course provider just to get a different perspective. Sometimes the example problem can enhance or detract from the learning. Looking at totally different examples of concepts is very helpful to me. It is quite encouraging to read that everyone else struggles. I have moments exactly as you describe Alex.

Justin Warren
Justin Warren
7,805 Points

You can do it! I'm in the same spot. Keep working hard!