Function Expression vs Function Declaration This Counter
Create 3 page counters using different functions, expression, declaration and arrow format. Counters will all work independently as the value of the total is contained within the instance of the function object using this.
Page counters with functions :
- Select all the page buttons
- Create a function expression that will increment the counter on button press
- Create a function expression with the arrow format that will track and increment the count on the page
- Create a function declaration that will track and increment the count on the page.