# Knack.scenes\[0\] --- Why does this return undefined?

**URL:** https://forums.knack.com/t/knack-scenes-0-why-does-this-return-undefined/7578
**Category:** API & Custom Code
**Created:** [August 15, 2016, 7:32pm UTC](https://forums.knack.com/t/knack-scenes-0-why-does-this-return-undefined/7578 "2016-08-15T19:32:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![KeithSterl25609](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@KeithSterl25609](https://forums.knack.com/u/KeithSterl25609)
#### Post date: [August 15, 2016, 7:32pm UTC](https://forums.knack.com/t/knack-scenes-0-why-does-this-return-undefined/7578/1 "2016-08-15T19:32:39Z")

</div>

I try...

console.log(Knack.scenes[0]);

Why does this return undefined? It should return an object showing all the properties of my first scene.

If I do JSON.stringify(Knack.scenes) I get an array of objects for all my scenes, yet I can't return the object for any individual item in the array.

What am I missing?

---

<div class="post-metadata">

### Author: ![BradStevens](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/bradstevens/32/140_2.png) [@BradStevens](https://forums.knack.com/u/BradStevens)
#### Post date: [September 17, 2016, 7:29am UTC](https://forums.knack.com/t/knack-scenes-0-why-does-this-return-undefined/7578/2 "2016-09-17T07:29:54Z")

</div>

console.log(Knack.scenes); gives me this:

 ![](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/5071173950/original/Capture.PNG?1474097375)
