👗 Fashion Shop

The Dress and Pants classes in this example both contain static getTestItems methods that generate test data. We can use them to add test data to an empty array to create a large number of stock items for testing the application.

  demo = []
  for (item of demo) {

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.