Bar cookies, called tray bakes in the UK and slices in Australia and New Zealand, are a type of cookie or dense, often chewy, cake that is baked in a shallow flat baking pan such as a square or rectangular cake pan. They can be eaten as a handheld or plated dessert. Brownies are a notable example.