# Spot the bug - #195: Console

**URL:** <https://forum.kirupa.com/t/spot-the-bug-195-console/684169>\
**Category:** web dev\
**Created:** [November 25, 2026, 4:05pm UTC](https://forum.kirupa.com/t/spot-the-bug-195-console/684169 "2026-11-25T16:05:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WaffleFries](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wafflefries/32/31185_2.png) [@WaffleFries](https://forum.kirupa.com/u/WaffleFries)\
**Post date:** [November 25, 2026, 4:05pm UTC](https://forum.kirupa.com/t/spot-the-bug-195-console/684169/1 "2026-11-25T16:05:12Z")

</div>

A quirky object challenge with a twist.

```js
const obj = {
  name: 'Gizmo',
  type: 'widget',
  properties: {
    color: 'emerald',
    shape: 'oval'
  },
  getInfo: function() {
    return this.name + ' (' + this.type + ')';
  }
};

function describe(o) {
  // intentionally wrong access: uses a non-existent property to trigger bug
  return o.properties.weight + ' lbs';
}

console.log(describe(obj));

```

Reply with what is broken and how you would fix it.
