/class-kata

Primary LanguageJavaScript

A kata on javascript classes

Getting started

  • Fork and clone repo
  • cd into project directory

Tasks

  1. create a Waiter class, that has a name (that's passed in during object instantiation)
  2. create a method .welcomeGuests(), which returns a string: 'welcome! what can i do for you today?'
  3. create a method takeOrder(orders) that receives and stores an array of orders (strings) provided by customers
  4. create a method repeatOrder() that reads out each order in a single string: "you have ordered: some item, another item, ..., last item"