File tree Expand file tree Collapse file tree 5 files changed +46
-84
lines changed Expand file tree Collapse file tree 5 files changed +46
-84
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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:
You can’t perform that action at this time.
0 commit comments