Question: JavaScript saleData (array) This should be an empty array (we will populate it later with a fetch call to our back end API) page (number)

  1. JavaScript

    • saleData (array) This should be an empty array (we will populate it later with a "fetch" call to our back end API)

    • page (number) This will keep track of the current page that the user is viewing. Set it to 1 as the default value

    • perPage (number) This will be a constant value that we will use to reference how many sale items we wish to view on each page of our application. For this assignment, we will set it to 10.

    • saleTableTemplate (Lodash template) This will be a constant value that consists solely of a Lodash template (defined using the _.template() function).

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!