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

Exercise prompt

Reduce the Stock

An object can keep its identity while one property changes.

Your task

Use dot notation to subtract sold from product.stock. Do not create a replacement object. Display Remaining: 5.