1/7 what do i do please help


#1

i dont know what to do please help the problem is

//Create the object called cashRegister
//and initialize its total property

//Using dot notation change the total property


#2

I'm not trying to sound mean when I ask this, but have you gone through all of the previous exercises? The instructions that are provided for this exercise is almost a literal step by step instruction on what to do...

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

Then change the property total to 2.99 using dot notation.


#3

yes i did what i ask and when i click save and submit my computer crashes


#4

I'm not sure how to help the computer crashing, but if you copy and paste the code you have completed, we can take a look and make sure it's being entered correctly.


#5

My answer worked pretty well.

//Create the object called cashRegister
//and initialize its total property
var cashRegister = {
total: 0
}
//Using dot notation change the total property
cashRegister.total = 2.99;

Yep, it's the ans..


#6

And pleeze say wat's your prob..


#7

var cashRegister = new Object();
cashRegister.total = 0;

//Using dot notation change the total property
cashRegister.total = 2.99;