1. Shut the Shop


#1

cashRegister {
    total: 0;};

cashRegister.total = 2.99;

What's wrong with this?


#2

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

cashRegister = {
    total: 0};

cashRegister.total = 2.99;

#3

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