Created
April 10, 2020 01:27
-
-
Save jensen/c0ec428a891cc397459124e415b1d399 to your computer and use it in GitHub Desktop.
A sample data structure for a questionaire application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const readings = [ | |
{ | |
id: 1, | |
conversation: ['A long paragraph for someone to read...', 'Another line'], | |
question: [ | |
{ | |
question: 'What was this thing about?', | |
answer: [ | |
{ text: 'The moon', correct: false }, | |
{ text: The stars', correct: true }, | |
{ text: 'The sun', correct: false } | |
] | |
}, | |
{ | |
question: 'What was this other thing abot?', | |
answer: [ | |
{ text: 'A pig', correct: false }, | |
{ text: 'A cat', correct: false }, | |
{ text: 'A mouse', correct: true } | |
] | |
} | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment