Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: zz-x2580
Assignment
Client-side programming with Javascript
Submit a single zip file called assignment1.zip.
This assignment has 100 marks.
You should read the marking scheme posted on cuLearn for details.
Assignment Background
In this assignment, you will develop a web page that allows the user to play a trivia game within the browser. Everything you implement for this assignment will involve client-side programming. The final part of the assignment will require you to request additional information from an online web service.
To begin the assignment, download the trivia.js file from cuLearn. This file contains a dataset with six sets of trivia questions, stored in the object ‘tests’. The tests object contains six keys, each representing the name of a test, and each of the associated values contains an array of objects representing the questions associated with that test. Each question object has the following format:
{
“category”: string representing the category of the question, “type”: string representing the type of the question, “difficulty”: string representing the difficulty of the question “question”: string representing the question text, “correct_answer”: string representing the correct answer, “incorrect_answers”: array of strings representing the incorrect answers (note: there are a varying number of incorrect answers in some questions)
}
Before starting your design for the assignment, you are encouraged to read through the entire specification. It is possible that later questions will inform your design decisions and by preparing in advance, you can avoid having to significantly refactor your code as you progress through the assignment.