👗 Fashion Shop

Use the JavaScript console to create new instances of Dress and BrokenDress:

myDress=new BrokenDress(221,8,60,"Strapless evening dress","red","swirly",10);
myDress=new Dress(222,8,60,"Strapless evening dress","red","swirly",10);

Select these statements, copy them and paste them into the Developer View console to run them.

You can set a breakpoint in the code and perform a statement at a time to discover exactly how the code runs.