# Summer: Assignment 1 - Coding Lab (Variables & Data Flow) ## Objective: The objective of this assignment is to reinforce your understanding of declaring, assigning, and reassigning variables in JavaScript. You will also practice using the `prompt()` and `console.log()` methods for user input and output. Additionally, you will work with different data types and perform calculations. ## Instructions: [8 pts] 1. Declare and initialize a variable called `name` with your name as a string. - **[1.1: 1 pt]** 3. Declare and initialize a variable called `birthYear` with your birth year as a number. - **[1.1: 1 pt]** 5. Declare a variable called `currentYear`. Use the `prompt()` method to ask the user to enter the current year. Store the value entered by the user in a variable called `currentYear` after converting it to a number using the `parseInt()` function. - **[1.1: 1 pt]** - **[1.5: 1 pt]** 7. Calculate and assign the user's age by subtracting the `birthYear` from the `currentYear`. Store the result in a variable called `age`. - **[1.4: 2 pts]** 9. Output the following information using the `console.log()` method: - Your name and age concatenated as a string, e.g., "Name: John, Age: 25" - The calculated birth year, e.g., "Birth Year: 1998" - The current year entered by the user, e.g., "Current Year: 2023" - **[1.5: 2 pts]**