From df4f5474b48ab07b30b7f26fca95d9718e11abe7 Mon Sep 17 00:00:00 2001 From: Subliminal Guy <subliminal_kid@posteo.de> Date: Sun, 16 Feb 2025 16:46:12 +0100 Subject: [PATCH] Change Data Helper Files --- .gitignore | 3 ++- helper/data.js | 6 ++++++ helper/quizData.js | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 helper/quizData.js diff --git a/.gitignore b/.gitignore index 572406b..d95433e 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 33be81c..65cef50 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 0000000..f2776bb --- /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 -- GitLab