Question
The following page reads a series of routes and associated stops at UGA that are present in a JSON string in the code and loads
The following page reads a series of routes and associated stops at UGA that are present in a JSON string in the code and loads them into local storage, then based on a search term provides the stops for a specific route search. However for a variety of reasons (7 to be exact) the page does not work as expected. The expectation is that when loaded in a browser the viewer first clicks Load Route Data button and the associated JavaScript runs to load the route data into localStorage. Subsequently when the user searches for a specific route, they should be able to see the associated stops retrieved from local storage and displayed or an error message saying the route doesnt exist.
Your task is to identify the errors in the script and list them. Errors may include syntax, runtime and logic errors. Include the specific line number and specific issue. Make sure that the issues you identify are noted in separate lines in the response box for this question.
This is open book and computer so it is recommended that you use Chromes developer tools to assist in your debugging.
The file is available on my website that you can view source and download it.
http://people.terry.uga.eduikhil/7571/final/debug_bad.html
Note/Hint: There is nothing wrong in the JSON string itself.
Load Route Data Milledge Find Route Stop 1: Main Library Stop 2 : Clarke Central Stop 3 : Five Points South Stop 4 : Five Points North Stop 5: Waddell
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started