You are on page 1of 9

Quiz game on js

-TATSAM GAUTAM
iNTRODUCTION

A quiz game on JavaScript is a project that involves creating a quiz using the
JavaScript programming language. The game would likely involve a series of
questions and multiple choice answers, with the player receiving feedback on
their performance at the end. The game could be implemented as a standalone
application or as a web-based application, depending on the intended use and
audience
Code
 This project is made using HTML, CSS, and JS. Specifically Vanilla JS and Vanilla CSS. The
arrays and functions are used to store the questions and perform different functions.
 I made a simple HTML file with the Wrap function which will help us to wrap all the things. Rather
than making different buttons and building different functions or variables, the wrap function will
make it in simpler form. Then, I connected my CSS and js files respectively.
.

I have made an array to store the questions in it.


Functions like a quiz. now, quiz. data have been used.
 

The select function has been built. If you choose the correct answer green light will
blow up into the button and if you select the wrong answer red light will blow up
into the button. Respectively, the score will keep changing and lastly, you will be
shown your respective score.
 

This function will help to start the program.


Flowchart
Thank You

You might also like