how to make a inventory in js

JavaScript
{
  id: 0,
  name: "SHEET",
  desc: "Standard bed sheet",
  maxHeld: 5,
  value: 10,
  amount: 1,
  type: "item"
}

Source

Also in JavaScript: