Demo entry 6733153

First Test

   

Submitted by anonymous on Apr 16, 2018 at 17:54
Language: JavaScript. Code size: 416 Bytes.

function washDishes(dishes) {
  if (dishesAreDirty(dishes) && dishesAreDry(dishes)) {
    soakDishes(dishes, water.warm);
  }

  if (dishesAreDirty(dishes) && dishesAreSoapy(dishes)) {
    scrubDishes(dishes);
  }

  if (dishesAreClean(dishes)) {
    if (dishesAreSoapy(dishes)) {
      rinseDishes(dishes, water.cold);
    }

    if (!dishesAreSoapy(dishes)) {
      dryDishes(dishes);
    }
  }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).