Category: General Coding

keyboard computer
Filed under: 100DaysOfCode, FreeCodeCamp, General Coding, Programming

Week 3 of #100DaysOfCode

Lots of banging my head against the desk this week, but I believe I figured out some more javascript/jquery. I posted to a forum to get a better explanation of my problem. Hoping this will assist in my understanding of functions and properties.

 

Day 21: March 1st, 2017

Today’s Progress: Trying to fix the issue I am having with the var i = 0 that is not working inside the getJSON function.

Thoughts: Completely lost on this point.

Day 22: March 2nd, 2017

Today’s Progress: Did a lot of research around scope of the var in the for loop

Thoughts: Still don’t understand the scope and function. Looking to the forums

Day 23: March 3rd, 2017

Today’s Progress: Couldn’t get my inital funciton to work using the “i” variable in the for loop. Used instead a global variable as a counter.

Thoughts: Will need to go back and understand the scope better but figured a workaround for now.

Day 24: March 4th, 2017

Today’s Progress: The getJSON is asynchronous. SO my function and second function is not firing at the correct time.

Thoughts: Argggghhhh.

Day 25: March 5th, 2017

Today’s Progress: Tried swapping out the getJSON for a $.ajax, it is functioning in correct time, but now giving me just data for the first user every time.

Day 26: March 6th, 2017

Today’s Progress: Researching $.ajax calls to get my app to work.

Thoughts: Why!!!!

Day 27: March 7th, 2017

Today’s Progress: Got tired of working on the Javascript side. Wasn’t liking the color/design. So am working to re-do that for now.

Day 28: March 8th, 2017

Today’s Progress: Well I cracked an looked up a similar project on how he was using the .forEach to go through the array.

Thoughts:I need someone to fully explain, but looks like I was just missing a paramater in the function. userList.forEach(function(user){….