Coder Social home page Coder Social logo

code-quiz's Introduction

Assignment 4: Code Quiz

Assignment 4 for Carleton University Coding Bootcamp. This assignment focused on creating an interactive web-based multiple choice quiz. The assigment involved creating a list of question and answer objects, presenting them to the user, and checking the user's answers. User score is kept and saved to local storage, and can be viewed at will. Link to application

Pupose

The purpose of this application is to test the user's knowledge of HTML, CSS, and JavaScript basics. User can polish their knowledge by shooting for a highscore.

Instructions

Upon clicking the Begin Quiz! button, a 60 second countdown will start. Questions will be displayed until an answer is given. On a correct answer the score will increase by 1, and the next question will be displayed. On an incorrect answer there will be a 5 second penalty to the remaining time, and the next question will be displayed. The quiz will continue until either the timer reaches 0, or all 15 questions have been answered.

Once the quiz has concluded, the user will be asked for their initials. The user's highscore will then be saved to their local storage. Clicking the View Highscore button will prompt the user for initials. If the initials are saved in storage, the highscore will be displayed.

Clicking the Restart button will reset everything to default values and restart the quiz.

Built With

  • HTML
  • CSS
  • JavaScript
  • Bootstrap

Concepts Utilized

  • Arrays
  • Objects
  • For loops
  • Functions and callback functions
  • User prompts
  • Alerts
  • Intervals
  • Conditional statements
  • DOM manipulation
  • Local storage access

code-quiz's People

Contributors

nikolaybutnik 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.