https://github.com/JS-Beginnershttps://github.com/JS-Beginners/interactive-quiz-project/interactive-quiz-project (Hosted on Github)
- DOM manipulation
- forEach loop
- for loops
My Personalize Summary
But, I didn't let this stop me.
After an exhaustive night of research and coding, I went to bed and finished the project the next day after I returned from work.
Again. I was pretty excited at what I accomplished and I know you can do the same.
New Things Learned or Refreshed
The second thing I learned was
debugger; is your best friend when it come to getting your code to work.
It is much more efficient than putting a bunch of console.logs() all over your code.
If you put your debugger in the right location of your file, once it is triggered in your browser, you can quickly see which variables have which values.
In one case, I was wondering why an
if statement wasn't running.
It turned out that the debugger showed me that I was trying to compare “1” with 1.
A string is not equal to a number when using (===) triple equal.
The third thing I learned, or rather was refreshed on, was that patience is key when it comes to programming.
I took me about an hour in total to methodically debug three different functions.
But, I got it done.
And now my quiz functions like a charm. 👌
Time to Code
This project took me about four hours to complete on my own.
I spent two hours one night and finished using another two hours the next day.
What To Accomplish
- Download the source code from the github repository above.
- Delete the contents of the
- Add a link to your finished project below!
What You Should See