Codington
0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Choose a Conversion

The type you need depends on what the program must do next. Calculations need numbers, while text construction may need strings.

Your task

priceText came from a text field. Choose Number() or String() so adding 5 produces this numeric total:

Total: 30

Change only the value assigned to price.