text: const me = {
      name: 'shaun',
      //age: 30,
      speak(text) {
          console.log(text);
      },
      spend(amount) {
          console.log('I spent ', amount);
          return amount;
      },
  };
  console.log(me);
  me.speak('hello, world');
  const greetPerson = (person) => {
      console.log('hello ', person.name);
  };
  greetPerson(me);
  //greetPerson({name: 'shaun'});
  const form = document.querySelector('.new-item-form');
  console.log(form.children);
  // inputs
  const type = document.querySelector('#type');
  const tofrom = document.querySelector('#tofrom');
  const details = document.querySelector('#details');
  const amount = document.querySelector('#amount');
  form.addEventListener('submit', (e) => {
      e.preventDefault();
      console.log(type.value, tofrom.value, details.value, amount.valueAsNumber);
  });
  