1. Shut the Shop

cashRegister {
    total: 0;};

cashRegister.total = 2.99;

What’s wrong with this?

You’re missing an equal to and you have a wrongly placed semi-colon ( ; )

cashRegister = {
    total: 0};

cashRegister.total = 2.99;
2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.