Skip to content

Quiz Game to learn DOM manipulation using JavaScript.

Notifications You must be signed in to change notification settings

shreyash010/Quiz_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Quiz README

This JavaScript quiz is a simple interactive web application that allows users to answer multiple-choice questions related to JavaScript. Users can select answers, submit their choices, and see their score. The quiz also provides feedback on whether the selected answer is correct or not.

Table of Contents

Introduction

This JavaScript quiz is designed to test your knowledge of JavaScript concepts, including coding examples, strict mode, IIFE (Immediately Invoked Function Expression), the event loop, and array sorting.

Features

  • Multiple-choice questions with randomized answer options.
  • Ability to select and submit answers.
  • Real-time scoring and feedback.
  • Progress tracking with the total score.
  • Code examples for certain questions.

How to Use

  1. Clone or download this repository to your local machine.

  2. Open the index.html file in a web browser to start the quiz.

  3. Answer the questions by clicking on the options provided.

  4. Click the "Submit" button to submit your answer and see the feedback.

  5. Click the "Next" button to move to the next question (if available).

  6. Complete the quiz and see your final score.

Code Overview

Here's an overview of the JavaScript code structure:

  • The quiz questions are defined in the quesJSON array.
  • User interface elements are accessed using the document.getElementById method.
  • Questions and options are displayed using the showQuestion function.
  • Answers are selected and submitted using event listeners.
  • The nextQuestion function advances to the next question.
  • Options are shuffled using the shuffleOptions function.
  • The total score is calculated and displayed to the user.

Customization

You can customize the quiz by modifying the quesJSON array to include your own questions, options, and correct answers. You can also adjust the styling by modifying the CSS.

About

Quiz Game to learn DOM manipulation using JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published