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

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!