I am slowly learning JavaScript and am working to build a quiz.
So I have got a very basic quiz see here
So my specific questiions are
- How would I store the Questions and answers in an external JSON file?
- Can I store the Questions and answers in another file type for instance a CSV file?
Maybe I should have a function that goes and gets the Qs&As for me:
function getQuestions() {
}
A working example where possible would be greatly appreciated.
Other thoughts: I know the Javascript/HTML quiz could be written alot better here, that is what I am working towards. I know it could be presented alot better using CSS (currently looking at bootstrap).