File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,8 @@ count = count + 1;
44
55// Line 1 is a variable declaration, creating the count variable with an initial value of 0
66// Describe what line 3 is doing, in particular focus on what = is doing
7+
8+ /*
9+ Line 3 is re-assigning the variable "count" with a new value that increases the previous value by 1
10+
11+ */
Original file line number Diff line number Diff line change 1+ // This are declarations
2+ const firstName = "Jane" ;
3+ const lastName = "Doe" ;
4+ const yearOfBirth = 1971 ;
5+ let currentYear = 2026 ;
6+
7+ //This are statements
8+ currentYear ++ ;
9+
10+ const introduction = `Hi, my name is ${ firstName } ${ lastName } , I am ${ currentYear - yearOfBirth } years old.` ; //saving return values
11+ console . log ( introduction ) ;
12+
You can’t perform that action at this time.
0 commit comments