diff --git a/.gitignore b/.gitignore index 572406bfdde3e3cce38a8f5a356cc09cf0a90f88..d95433e318472e9960b519a5eb44b67611aabe02 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /node_modules -package-lock.json \ No newline at end of file +package-lock.json +/.vscode \ No newline at end of file diff --git a/helper/data.js b/helper/data.js index 33be81cbdd428f81733941a69c8e7ba8ce5cdf6a..65cef506fdb3cc800ccedf8e5ba2735e5ad58b7e 100644 --- a/helper/data.js +++ b/helper/data.js @@ -4,6 +4,12 @@ const data = [ "name": "Leanne Graham", "username": "Bret", "email": "Q7Z2H@example.com", + }, + { + "id": 2, + "name": "Ervin Howell", + "username": "Antonette", + "email": "Ht2QX@example.com", } ] diff --git a/helper/quizData.js b/helper/quizData.js new file mode 100644 index 0000000000000000000000000000000000000000..f2776bbfa0a6f130371e80acd9152e2bde21c2e5 --- /dev/null +++ b/helper/quizData.js @@ -0,0 +1,34 @@ +const questions = [ + { + category: "Geography", + question: "What is the capital of France?", + choices: ["London", "Paris", "Berlin", "Rome"], + answer: "Paris" +}, + { + category: "Movies", + question: "What is the name of the main character in The Matrix?", + choices: ["Neo", "Trinity", "Morpheus", "Cypher"], + answer: "Neo" +}, + { + category: "History", + question: "Who was the first president of the United States?", + choices: ["John Adams", "Thomas Jefferson", "George Washington", "Abraham Lincoln"], + answer: "George Washington" +}, + { + category: "Sports", + question: "Which team won the World Cup in 2018?", + choices: ["France", "Brazil", "Germany", "Italy"], + answer: "France" +} , + { + category: "Science", + question: "What is the chemical symbol for gold?", + choices: ["Au", "Ag", "Pt", "Cu"], + answer: "Au" +} +] + +export default questions \ No newline at end of file