// Create a counter variable // Analysis var counter = 1;This statement creates a variable ('counter') and initialises it to the value of 1. It is always a good idea to initialise variables so that you know exactly what value they hold. Some programming languages automatically initialise a variable to hold 0 at creation, and some do not. It is safer, and a good programmming practice, to always explicitly initialise variables.