

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Constants
incomplete
2: Computed Constants
incomplete
3: Comparing Go's Speed
incomplete
4: Formatting Strings in Go
incomplete
5: Runes and String Encoding
incomplete
6: Fix Bugs
incomplete
7: Fix Types
incomplete
8: Type Inference
incomplete
9: Format Practice
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Decimals matter when it comes to inferring types.
Our current price to send a text message is 2 cents. However, it's likely that in the future the price will be a fraction of a penny, so we will need to use a float64 to store it.
Edit the penniesPerText declaration so that it's inferred by the compiler as a float64.