How can I create a quiz app | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I create a quiz app

Hello solo Learners I need ideas on how to create a quiz app with JavaScript, and I don't really know ECMA6

26th May 2019, 11:29 PM
Favour
Favour - avatar
5 Answers
+ 7
You can just use JavaScript. ECMA6 is just a standardized version of a sort-of-messy language. Anyways, please show us your first attempt. After all, you're the one making, not us.
26th May 2019, 11:40 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 4
Attach the code here and let's see what went wrong.
27th May 2019, 12:13 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
It's even showing me an error Something like "Uncaught TypeError : Cannot read property 'addEventListener' "
27th May 2019, 12:12 AM
Favour
Favour - avatar
+ 2
Favour It's the usual problem here of JavaScript running before the HTML is fully loaded. To fix it, simply encase everything in the JavaScript tab within: window.onload = function(){ All of your current JavaScript here } That will cause the JavaScript to not run until the HTML is fully loaded and so fixes that error.
27th May 2019, 12:22 AM
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘 - avatar
27th May 2019, 12:13 AM
Favour
Favour - avatar