This is a quiz to test your knowledge of Javascript. The quiz will increment through a total of 10 questions. Each question has a set amount of time to be answered according to the difficulty of the question. There are question about basic javascript knoledge and then there are some questions contining code that you need to study and determine the correct output. The targeted users for this app are users that want to test their javascript knowledge and have fun while doing it.
Click here to view live site - Link
-
Timer: Each question is time-bound. The time given depends on the difficulty level of the question.
-
Question Counter: A counter displaying the current question number and total amount of questions.
-
Code Snippets: Some questions include JavaScript code snippets for users to read and understand to answer the question correctly.
-
Quiz Rules: Rules for the quiz are provided before the start of the quiz.
-
Score Display: User's score is updated and displayed in real time.
-
Responsive Design: The web page is designed to be viewed on screens of various sizes.
- A feature i would add is to use the localStorage of the browser to store the score in the browser.
- The feature to highlight the correct and wrong answers after the user submits their answer.
- A lifeline button that can be click once and it would remove two wrong answers to leave it 50/50
- I would like to update highlight.js and use a dark theme for the code snippets so that it would work better with the rest of the design.
TEST | ACTION | EXPECTATION | RESULT |
---|---|---|---|
Responsiveness | Size to multiple device screens using Chrome Dev Tools | Element resize and keep position | Looks and works as expected |
Start Button | Clicked | Display the 1st quiz question and start the timer | Works as expected |
Answer buttons | Clicked one answer to select it, then clicked another answer to make sure only one could be selected | Only one answer button can be selected, cliking on a second answer button will deselect the previous answer and select the newly clicked button. | Works as expected |
Submit button | Click submit answer | The selected answer is check to see if correct and if depending on result user gets alert notifying them if answer is correct or incorrect, it then moves onto the next question | Works as expected |
Restart button | Click Restart button | It will reset the quiz removing all the previous stats and go back to question one to start the quiz again | Works as expected |
Footer Icon | Click icon | It will open the MDN website page in new tab explaining more about javascript | Works as expected |
Score & Question Counter | Answered questions | After answering a correct question the score counter will inrement by +1. Answering a question wrong will not cause the score counter to increment. The question counter will increment by +1 every time the user submits their answer. | Works as expected |
Timer | Start quiz | The timer amount should be whats set in the quiz data questions value timer. | Works as expected |
I used figma to create the wireframes for this project. I created a wireframe for mobile and desktop. I used these wireframes as a guide to build the project.
- I went with a style choice that matached the terminal screen design on the app iTerm on mac. It has a black background and bright green text.
The Font is Courier New. This font was chosen for its similarities to the font used in iTerm.
- hightlight.js is throwing up a deprecation warning. I left it to late to upgrade to the latest version of highlight.js.
First step was to clone the Code Institute Template.
- Navigate to this link, Link
- Click on the green button that says "Use this template"
- Give the repository a name and click "Create repository from template"
The process for setting up this site using GitHub pages was as follows:
- Log in to GitHub and locate the GitHub Repository
- At the top of the Repository (not top of page), locate the "Settings" Button on the menu.
- On the left-hand side of the Settings page, under the code and automation section, click on "Pages".
- Under "Source", click the dropdown called "None" and select your master branch.
- On the right hand side of the page, under "Enviroments", you will see a link to the deployed site.
- Navigate to this link, Link
- Click on the green button that says "Code"
- To clone the repository using HTTPS, under "Clone with HTTPS", copy the link.
- Open Git Bash
- Change the current working directory to the location where you want the cloned directory to be made.
- Type git clone, and then paste the URL you copied earlier.
- Press Enter. Your local clone will be created.
git clone
- Navigate to this link, Link
- Click on the Fork button in the top right corner.
- This will create a copy in your personal repository.
- Leeds quiz app project, I used this project as a template to build my quiz app. Link
- I used this youtube tutorial to design the questions answers and timer. Link
- The questions and answers where generated by chatGPT-4.
- The image used was obtained from google image under the free to use license.