My item list

The given code should display a list of items and allow adding new items, but it's not working properly.

Requirements:

  • By default, display items pen, and wheel.
  • Clicking Add New should add a new item at the end of the list and clear the input.
  • If the input is empty, do nothing.

Current bug:

  • Clicking on the button clears the input, but the item is not added to the list.

You are free to add classes, styles, ids, but don't edit or remove data-test attributes.
Create an account to start coding
Create account