1. Shut the Shop!



Oops, try again. Define an object named 'cashRegister'

function cashRegister(total) {
    this.total = 2.99;


I will give an example that resembles to this exercise...
define an object circle and put property radius with value of 3.

var circle = {radius: 3};

console.log(circle.radius); // prints 3
How to access (or change) value of radius ?

circle.radius = 5 (dot notation of accessing values using key)

console.log(circle.radius); // prints 5

After this, reread the instruction and start from scratch!
I hope it helps!


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