We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Type Inference

Decimals matter when it comes to inferring types.

Assignment

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.