Skip to content

Commit eca35a2

Browse files
committed
Done
1 parent 9efe4d2 commit eca35a2

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed
Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,37 @@
1-
// Declare and assign the variables below
21

2+
// Declare and assign the variables below
3+
let Nameofthespaceshuttle = "Determination"
4+
let ShuttleSpeed = 17500
5+
let DistancetoMars = 225000000
6+
let DistancetotheMoon = 384400
7+
let Milesperkilometer = 0.621
8+
let milesToMars = 139725000
9+
let hoursToMars = 7984.285714285715
10+
let daysToMars = 332.67857142857144
11+
let milesTomoon = 238712.4
12+
let hoursTomoon = 13.64070857142857
13+
let daysTomoon = 0.5683628571428571
314
// Use console.log to print the 'typeof' each variable. Print one item per line.
4-
15+
console.log(typeof Nameofthespaceshuttle)
16+
console.log(typeof ShuttleSpeed)
17+
console.log(typeof DistancetoMars)
18+
console.log(typeof DistancetotheMoon)
19+
console.log(typeof Milesperkilometer)
20+
console.log (typeof milesToMars)
21+
console.log (typeof hoursToMars)
22+
console.log (typeof daysToMars)
23+
console.log (typeof milesTomoon)
24+
console.log (typeof hoursTomoon)
25+
console.log (typeof daysTomoon)
526
// Calculate a space mission below
6-
27+
console.log("milesToMars = 139725000")
28+
console.log("hoursToMars = 7984.285714285715")
29+
console.log("daysToMars = 332.67857142857144")
730
// Print the results of the space mission calculations below
8-
31+
console.log("Determination will take 332.67857142857144 days to reach Mars.")
932
// Calculate a trip to the moon below
10-
11-
// Print the results of the trip to the moon below
33+
console.log("milesTomoon = 238712.4")
34+
console.log("hourstomoon = 13.64070857142857")
35+
console.log("daysTomoon = 0.568362857142857" )
36+
// Print the results of the trip to the moon below
37+
"Determination will take 0.568362857142857 days to reach the moon."

0 commit comments

Comments
 (0)