I have completed my first completely independent project using as much knowledge as I could at this stage. I was really hard work and a steep learning curve. It has left me feeling like I have made loads of progress but the more
I do, the more I realise how much there is to learn which can be overwhelming. I found I needed to go back over functions and arrays in particular...and used a lot of them. I'm certain there are better ways of coding what I have
done. I haven't really spent any time yet going over and tidying up. One of my bigger questions is, I wonder if I should be storing answers into objects? It certainly feels like things could be neater. I also really wanted to only use the feedback sentence "For Question 1 you answered....bla bla bla" only once.
I tried to use the count value in an array within a string interpolation.... `bla bla bla ${array[count]}` but it did not like this and returned undefined. I spent a while on this and googling but couldn't get an answer. More knowledge needed! Still, I feel a sense of achievement because it works (and it was hard)!!
Really appreciating my friends/slash mentors encouraging and giving me feedback
Added a page alert in between each question to say whether the user got it right or wrong. Not particularly elegant but it was a quick way of adding some feedback and for me to learn how it works!
Learnt how to make a link open in a new tab target="_blank"
I have moved back to CodeCademy to continue studying (on the full stack engineer career path).
Signed up to Discord and will look to hopefully collaborate on a project in the near future.
Have been longing to insert a snippet of code into this webpage just to demonstrate some key learning points and share with others.
As a total beginner, trying to get my head around using new programs is sometimes harder than using code. I investigated GitHub and Replit.
GitHub is good for a link (which I have done above). Replit seems to embed an entire coding program widget thing, which wasn't what I wanted.
I got closer when I tried JSFiddle, but for some reason the iFrame wasn't working and it was a lot of trying to understand a foreign language.
Finally I signed up for CodePen which I had seen in other places and Ta Dah! Another example of understanding about 20% of what is going on and
persisting until it works. Also amazing how collaborative the coding world is and how many tools there are for free.
When going over the loops again I realised I could improve a bit of code in my quiz. See below. I'm pretty pleased with this.
I do wonder about the yourResultsRow.innerHTML += `Your FINAL SCORE IS ${scoreCount} out 5` It works well, but I feel like there might be other ways of doing this better.
I think what's happening is that it is replacing the whole contents of that element each time rather than adding an extra bit on each time. So wondering if there is a more efficient way of doing it. Not sure.