Tuesday, April 28, 2015

For Loops in Javascript

"I just can't wait to graduate!" goes across my mind as I try to fit in some coding practice in between classes. My mind has been a clutter lately. I'm feeling anxious and beginning my prep for development bootcamp applications but also trying to memorize enzymes and proteins for my biochemistry class. I figured starting a coding blog would help me declutter my learning and retain all of this new syntax that I am practicing! Currently, I am learning JavaScript via Codeacademy. I have realized that organizing { }'s helps understand your process better as you write for loops. At first I was confused at why we do myName.length + i instead of just myName.length  (in line 11) in order to write out all the letters of my name when text[i] is equal to 'E'. But I get it now! The letter 'E' at position text[i] is not only at 0 but also in other parts of var text when there is 'Eunice'. This Codeacademy post helped me understand this much better.

1 comment: