Question
Here is the proposed question: Now create a file in the folder named db.json. In this file you need to add json data representing your
Here is the proposed question:
Now create a file in the folder named db.json.
In this file you need to add json data representing your transactions. See the example:
{ "transactions":
[
{"id": 1, "date": "4/22/2021", "description": "debit", "amount": 50}
{"id": 2, "date": "4/23/2021", "description": "credit", "amount": 20.00}
]
}
Remove your array from last week and modify your code to call your new rest server. My question is... How do I modify my JavaScript and html code to call the rest server and how do write the code (for loop) that will display the array that is being called from the db.json file to display in the html file as a table?
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