👗 Fashion Shop

Use the JavaScript console to create dresses and pants and use getDescription to view their contents.

myDress=new Dress(221,8,60,"Strapless evening dress","red","swirly",10);
myPants=new Pants(222,1,45,"Good for the workplace","black","plain",30,30);

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.