1. Shut the Shop!


#1


https://www.codecademy.com/courses/close-the-super-makert/0/1?curriculum_id=506324b3a7dffd00020bf661#


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


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


#2

hint**
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)

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

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


#3

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