JSFiddle - React, Tailwind, and code Playground

JavaScript

var rockSpearguns = {
  Sharpshooter: {barbs: 2, weight: 10, heft: "overhand"},
  Pokepistol: {barbs: 4, weight: 8, heft: "shoulder"},
  Javelinjet: {barbs: 4, weight: 12, heft: "waist"},
  Firefork: {barbs: 6, weight: 8, heft: "overhand"},
  "The Impaler": {barbs: 1, weight: 30, heft: "chest"}
};
function listGuns (guns) {
  for (key in guns) {
    console.log("Behold! " + key + ", with " + key.heft + " heft!");
  }
}
listGuns(rockSpearguns);