Skip to content

Commit 682e314

Browse files
Merge pull request LaunchCodeEducation#2 from LaunchCodeEducation/redeclaration-fix
Redeclaration fix
2 parents ad301d6 + d015f3b commit 682e314

File tree

5 files changed

+46
-84
lines changed

5 files changed

+46
-84
lines changed

exercises/part1-2.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

exercises/part3.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

exercises/part4.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

exercises/part5.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

exercises/parts1-5.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// URL for the instructions:
2+
// https://education.launchcode.org/intro-to-professional-web-dev/chapters/typescript/exercises.html
3+
4+
5+
// Part 1: Add the 5 variables here.
6+
7+
8+
9+
// Part 2: Declare and assign the 3 new variables here.
10+
11+
12+
13+
// Code an output statement here (use a template literal):
14+
15+
16+
17+
// Part 3: Code the "getDaysToLocation" function here:
18+
19+
20+
21+
// Move your output statement from part 2 here. Update the template literal to call
22+
// the function and print the outputs for a Mars trip and a moon trip.
23+
24+
25+
26+
27+
// Part 4: Move the function and 3 variables into a class.
28+
// Define your Spacecraft class here:
29+
30+
31+
32+
// Create an instance of the class here:
33+
34+
35+
36+
// Move your output statements from part 3 here. Update the template literals use the
37+
// instance of the class.
38+
39+
40+
41+
// Part 5: Add the required import statement BEFORE the part 1 concent.
42+
43+
44+
// Add the printDaysToLocation function to the Spacecraft class.
45+
46+
// Paste in the code from step 6 here:

0 commit comments

Comments
 (0)