Skip to content

Instantly share code, notes, and snippets.

@jensen
Created April 10, 2020 01:27
Show Gist options
  • Save jensen/c0ec428a891cc397459124e415b1d399 to your computer and use it in GitHub Desktop.
Save jensen/c0ec428a891cc397459124e415b1d399 to your computer and use it in GitHub Desktop.
A sample data structure for a questionaire application
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