File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change 22// https://education.launchcode.org/intro-to-professional-web-dev/chapters/typescript/exercises.html
33
44
5- // Part 1: Add the 5 variables here
5+ // Part 1: Add the 5 variables here.
66
77
88
9- // Part 2:
9+ // Part 2: Declare and assign the 3 new variables here.
1010
1111
12- // Code the output statement here (use a template literal):
1312
13+ // Code an output statement here (use a template literal):
1414
1515
16- // Part 3:
17- // Code the "getDaysToLocation" function here:
1816
17+ // Part 3: Code the "getDaysToLocation" function here:
1918
20- // Call the function and print the outputs for the Mars trip and the moon trip:
2119
2220
23- // Part 4:
24- /* Move the variables spacecraftName, speedMph, and milesPerKilometer into the
25- Spacecraft class. Also move your getDaysToLocation function into the Spacecraft
26- class. */
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.
2723
24+
25+
26+
27+ // Part 4: Move the function and 3 variables into a class.
2828// Define your Spacecraft class here:
2929
3030
31+
3132// Create an instance of the class here:
3233
3334
3435
35- // Print two outputs - one for the trip to Mars and one for the trip to the moon.
36+ // Move your output statements from part 3 here. Update the template literals use the
37+ // instance of the class.
38+
39+
3640
3741// Part 5: Add the required import statement BEFORE the part 1 concent.
3842
You can’t perform that action at this time.
0 commit comments