I don’t understand how this code works. Am I following the lesson wrong? To be honest, I’ll watch the video instead of attempting the code, so maybe I should start doing that first. I’ll probably go through the lessons a second time to see if I get it.
But that aside, I don’t understand this first part of the answer:
for (var i = 0; i < contacts.length; i++)
I get the next couple of lines of code, but I really don’t understand how this first line works and it’s kind of frustrating.
Search the lesson " Iterate with JavaScript For Loops" in JavaScript lesson.
If you understand that class, you should understand the line you mentioned.
Yeah, I think you are right. I think I’ve been kind of screwing myself. I just going to do the course over again and really think on what each piece of code means until I get it myself.