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)
-
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
Get step-by-step solutions from verified subject matter experts
