Spot on! myDouble
is now declared and set to hold double
-type values.
Psst: have you noticed how every line we wrote so far ended with a semicolon? That's how we mark the end of a statement.
Does that really create myDouble
as a double
-type variable?