Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions exercises/part1-2.ts

This file was deleted.

16 changes: 0 additions & 16 deletions exercises/part3.ts

This file was deleted.

25 changes: 0 additions & 25 deletions exercises/part4.ts

This file was deleted.

27 changes: 0 additions & 27 deletions exercises/part5.ts

This file was deleted.

46 changes: 46 additions & 0 deletions exercises/parts1-5.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// URL for the instructions:
// https://education.launchcode.org/intro-to-professional-web-dev/chapters/typescript/exercises.html


// Part 1: Add the 5 variables here.



// Part 2: Declare and assign the 3 new variables here.



// Code an output statement here (use a template literal):



// Part 3: Code the "getDaysToLocation" function here:



// Move your output statement from part 2 here. Update the template literal to call
// the function and print the outputs for a Mars trip and a moon trip.




// Part 4: Move the function and 3 variables into a class.
// Define your Spacecraft class here:



// Create an instance of the class here:



// Move your output statements from part 3 here. Update the template literals use the
// instance of the class.



// Part 5: Add the required import statement BEFORE the part 1 concent.


// Add the printDaysToLocation function to the Spacecraft class.

// Paste in the code from step 6 here: