Skip to main content
Akar's user avatar
Akar's user avatar
Akar's user avatar
Akar
  • Member for 10 years, 9 months
  • Last seen more than a month ago
awarded
Loading…
awarded
awarded
awarded
awarded
awarded
awarded
comment
Simple JavaScript quiz app using an external questions.json file
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.
comment
Simple JavaScript quiz app using an external questions.json file
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.
Loading…
awarded
awarded
asked
Loading…
comment
Adapting new design pattern with post handler
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.
comment
Adapting new design pattern with post handler
And by the way, is there a reason behind using a single var keyword to define variables?
revised
Adapting new design pattern with post handler
added 4153 characters in body
Loading…
comment
Adapting new design pattern with post handler
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!
accepted