Skip to content

Commit 32014c8

Browse files
didnt understan eveything
1 parent 2e7814d commit 32014c8

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

data-and-variables/exercises/data-and-variables-exercises.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
// Declare and assign the variables below
2-
2+
let shuttlename = 'determination';
3+
let shuttlespeedMph = 175000;
4+
let distanceTomarsKm = 225000000;
5+
let distanceTomoonKm = 384400;
6+
const milesPerkm = 0.621;
37
// Use console.log to print the 'typeof' each variable. Print one item per line.
4-
8+
console.log (typeof (shuttlename));
9+
console.log (typeof ("shuttlespeedMph"));
10+
console.log (typeof (distanceTomarsKm));
11+
console.log (typeof (distanceTomoonKm));
12+
console.log (typeof ( milesPerkm));
513
// Calculate a space mission below
6-
14+
let milesToMars = kilometersToMars * milesPerKilometer;
15+
let hoursToMars = milesToMars / shuttlespeedMph;
16+
let daysToMars = hoursToMars / 24;
717
// Print the results of the space mission calculations below
818

919
// Calculate a trip to the moon below

0 commit comments

Comments
 (0)