Code Monkey home page Code Monkey logo

code-quiz's Introduction

Code Quiz

Description

Submission for Module 6 of the University of Birmingham Skills Bootcamp in Front-End Web Development & UX.

This assignment took a starter code package in commit 8a1f771 and developed it to meet the defined acceptance criteria.

The production website is deployed here.

Screenshot of deployed webpage

This has been developed to meet the following Acceptance Criteria:

  • GIVEN I am taking a code quiz
  • WHEN I click the start button
  • THEN a timer starts and I am presented with a question
  • WHEN I answer a question
  • THEN I am presented with another question
  • WHEN I answer a question incorrectly
  • THEN time is subtracted from the clock
  • WHEN all questions are answered or the timer reaches 0
  • THEN the game is over
  • WHEN the game is over
  • THEN I can save my initials and score

Learning Outcomes

  • Re-visited the use of default versus named exports and fixed an error where I was using a default export and importing using named syntax
  • Practiced using the .classList.remove() method that had learned on a Net Ninja course previously
  • Learned how to store and retrieve data with localStorage
  • Learned how to sort an array of objects
  • Learned that the forEach method also has an index argument / parameter that holds the index within the input array of the current element
  • Learned about moving variables into and out of global scope to make them available across different function in my program to achieve the desired behaviour
  • Learned about using .matches() to see if an element matches a CSS selector, which I used to only target buttons within the choices div. I also learned this is called event delegation.
  • Learned how to create audio elements offscreen and how to play them in response to an event

Resources used

Mark Scheme Compliance

Technical Acceptance Criteria

Item Evidence
Satisfies all of the above acceptance criteria. The built application satisfies the acceptance criteria and comments are included in the code for the acceptance criteria and respective handling functions.

Deployment

Item Evidence
Application deployed at live URL. Live application deployed at: https://stefan4d.github.io/code-quiz/
Application loads with no errors. No visual defects
No console errors
Application GitHub URL submitted. URL submitted
GitHub repository that contains application code. This repository contains all code.

Application Quality

Item Evidence
Application user experience is intuitive and easy to navigate. Application uses standard web page elements and hides/displays elements of the UI depending on the current context of the game.
Application user interface style is clean and polished. Application user interface matches the original starter code.
Application resembles the mock-up functionality provided in the Challenge instructions. Application resembles the mock-up.

Repository Quality

Item Evidence
Repository has a unique name. Unique name used
Repository follows best practices for file structure and naming conventions. Standard file naming conventions used
Repository follows best practices for class/id naming conventions, indentation, quality comments, etc. All multi-word variables used camelCase

Indentation within code follows best practice

Comments have been included within the files to describe behaviour and/or intent of the code.
Repository contains multiple descriptive commit messages. Multiple commits included demonstrating incremental build of final submission. Each has a clear description of changes made.
Repository contains quality README file with description, screenshot, and link to deployed application. This README document.

License

Released under the MIT license. Full details in LICENSE.

code-quiz's People

Contributors

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