Declaring a variable and starting function code