Skip to content

Commit 51cbb20

Browse files
committed
Fix error on homework - age != birth year
The text says to assign your own age but actually you need to assign your birth year
1 parent 9d36b53 commit 51cbb20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript1/week1/homework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Cool now lets venture into the world and see which problems we can solve with so
6767

6868
> You are talking to a friend who suddently looks at you and asks: "How old will you be in 2045?" Hmm you remember the year you were born and try to do some calculation: Born in 1987 + 3 that's 1990. 90 - 40 is 50 + 5 thats 58. I will be 58! Wow that was painful! Let's fix that by making some code that automatically does this!
6969
70-
Create two variables called `yearOfBirth` and `yearFuture`. Assign these your own age and a future year.
70+
Create two variables called `yearOfBirth` and `yearFuture`. Assign these your birth year and a future year.
7171
What type will these two variables be? Using `yearOfBirth` and `yearFuture` calculate the age and store that in a variable called `age`.
7272

7373
Log out this string: "You will be 40 years old in 2027". With 40 being the result of the `age` variable and 2027 being the `yearFuture` variable. (Hint use string concatenation)

0 commit comments

Comments
 (0)