Ajax-loader-large-white
Building a Cash Register
Shut the Shop!

You are working for a large supermarket and the cash register has just failed. The boss is not happy as he can't make any money.

To save the day it happens that you let slip to your boss that you know JavaScript and can build a quick virtual cash register until head office sends support staff.

Your boss is over the moon and wants you to get started right away.

Instructions

Create a new object called cashRegister with the property total initialized to 0.

Then change the property total to 2.99 using dot notation.

?
Stuck? Get a hint! Hint
Get live, fast support from Codecademy Advisors when you get stuck. Learn more.

Look to the Objects Lessons or read about Objects in the Glossary if you have any trouble with this project!

Since we only need one cash register use object literal notation.

script.js