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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode/
15 changes: 8 additions & 7 deletions exercises/parts1-5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
// https://education.launchcode.org/intro-to-professional-web-dev/chapters/typescript/exercises.html


// Part 1: Add the 5 variables here.
// Part 1: Declare (5) Variables With Type



// Part 2: Declare and assign the 3 new variables here.
// Part 2: Print Days to Mars



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



// Part 3: Code the "getDaysToLocation" function here:
// Part 3: Create a Function ("getDaysToLocation")



Expand All @@ -24,8 +24,8 @@



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




Expand All @@ -38,9 +38,10 @@



// Part 5: Add the required import statement BEFORE the part 1 concent.
// Part 5: Export and Import the SpaceLocation Class
// 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:
// Paste in the code from step 6 here: