What's true about 42
and "42"
?
42
can be used for arithmetic42
is an integer value while "42"
is a string valueThat's right! While 42
is an int
-type value that we can use for arithmetic, "42"
is a String
-type value that doesn't have a further meaning.
Not quite! While 42
is an int
-type value that we can use for arithmetic, "42"
is a String
-type value that doesn't have a further meaning.