Question: Link to the zip file(Homework #3, DOMPracticeStudent.zip)-- https://www.grotto-networking.com/WebSystems/WebSystemsMaterials.html#weekly-materials The zip file includes an HTML file, an external style sheet file, and an external JavaScript file.

Link to the zip file(Homework #3, DOMPracticeStudent.zip)-- https://www.grotto-networking.com/WebSystems/WebSystemsMaterials.html#weekly-materials The zip file includesan HTML file, an external style sheet file, and an external JavaScriptLink to the zip file(Homework #3, DOMPracticeStudent.zip)-- https://www.grotto-networking.com/WebSystems/WebSystemsMaterials.html#weekly-materials

The zip file includes an HTML file, an external style sheet file, and an external JavaScript file. You will NOT change the HTML file in anyway. You will need to look at it to see the structure and the various IDs that I put on the elements. Almost all your work will go into the JavaScript file with just a few additions to the stylesheet required. Note: the HTML file includes both the CSS and JavaScript files 1. (1Opts) Display questions and answers from the questions array given in the JavaScript file. In this assignment you have my permission to use global variables. In the JavaScript file you will see I've already defined a few for you: a "state" variable that gives the index of the current question, qIndex, DOM element reference variables qCountSpan and qIndexSpan. Using global variables makes them accessible from your browsers developers console so you can interactively work with them to debug and develop your code. a. b. Create paragraph

elements to hold question and answer. Hint: use document.createElement("p") c. Need to add those paragraph elements to the corresponding

s with IDs contentQ and contenta respectively. d. Create a function to display the question/answer from the questions array according to the value of qIndex variable. Make sure that this function updates all appropriate display informatiorn 2. (10 pts) To allow a user to add a question/answer pair write a function to get the content from the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!