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

Exercise prompt

Repair String Addition

The starter displays Items: 32 because quantityText is still a string, so + joins it with 2.

Your task

Repair quantity so JavaScript performs numeric addition and displays:

Items: 5

Change only the assignment to quantity.