GithubHelp home page GithubHelp logo

koltong / browser-based-quiz-game Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 63 KB

Simple quiz game utilizing the windows.prompt and windows.alert command. Aimed to show functionality with limited code.

HTML 13.38% JavaScript 86.62%

browser-based-quiz-game's Introduction

Browser Based Quiz Game

Coding Challenge

Simple quiz game that can be run in your browser. This utilizes the window.prompt() and window.alert() functions. Aimed to show functionality with limited code.

Challenge Instructions

/* CODING CHALLENGE - QUIZ */
/*
--- Let's build a fun browser based quiz game

1. Build a function that accepts a QUESTIONS array and a score parameter.

2. The QUESTIONS array should include questions and each question should include
a) a question
b) the possible answers for the question (we're going for a multiple choice)
c) a way to store the correct answer

3. When this function is invoked, it will prompt the user with a random question
and with the possible answers.

4. Alert the user if their answer is correct and then prompt them a new question

4. The user should get their score after each answer (either correct or
incorrect).

5. Since we don't want the game to never end, include an option to quit the
game if the user answers 'exit'.
*/

Prerequisite

  1. Node.js
  2. NPM

How to run?

Simple! Just clone the repository and run the following command in the root folder.

npm start

browser-based-quiz-game's People

Contributors

koltong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.