Skip to content

EleoXDA/Quiz_TS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Quiz

image

This repository contains a simple quiz app built with HTML, CSS, and JavaScript using Typescript. The app presents a series of multiple-choice questions to the user, tracks the user's score, and allows the user to navigate between questions.

File Structure

The repository contains the following files:

  • index.html: This is the main HTML file that contains the structure of the quiz app.
  • quiz.css: This file contains the styles for the quiz app.
  • quiz.js: This file contains the logic for the quiz app, including the array of questions, the functions to display questions and handle user responses, and the logic to manage the quiz state.

How to Use

To use this app, fork and download the reporsitory and then simply open the index.html file in your web browser. The app will present you with a series of questions. Click on the answer you think is correct. Your score will be updated accordingly. Once you've answered all the questions, you can restart the quiz by clicking the "Restart Quiz" button.

Customization

You can customize the quiz by modifying the allQuestions array in the quiz.js file. Each question is an object with the following properties:

  • question: A string that contains the question.
  • options: An array of strings that contains the possible answers to the question.
  • answer: A string that contains the correct answer to the question. Feel free to add, remove, or modify the questions as you see fit.

Browser Compatibility

This app should work in any modern web browser that supports HTML5, CSS3, and ES6 JavaScript.

License

This project is licensed under the MIT License. You can find the full text of the license in the LICENSE.md file.

About

A simple Quiz app that uses Typescript for Logic

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published