Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I just copy pasted what code I had during the development, I didn't remove the comments to look more professional, I removed the most obvious ones like the ones you mentioned, above Handlebars.compile methods, currentIndex and currentScore. Thanks for pointing those out.
I made obvious comments so it's not confusing at the first sight, I wrote those comments 4 in the morning so when I wake up I could read it without using my brain, and yeah I'm young, I don't have professional dev experience, I'm trying to learn Javascript by creating a Quiz application, I was pretty sure that those were obvious comments.
Awesome! I just went with the data method way. Because it just makes your code more jQuery kind of way. as for the var keyword, I separated them out to their own line.
What an awesome review! my code looks much cleaner now. The reason why I used dataset was, you can't call data() on the get method I think. that's why. I passed the parent container to the parents method. everything is working fine. I will post the updated code. Thanks!