# Array functionality inside classes

**URL:** <https://forum.kirupa.com/t/array-functionality-inside-classes/159616>\
**Category:** Uncategorized\
**Created:** [August 18, 2005, 7:38pm UTC](https://forum.kirupa.com/t/array-functionality-inside-classes/159616 "2005-08-18T19:38:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sybersnake](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@sybersnake](https://forum.kirupa.com/u/sybersnake)\
**Post date:** [August 18, 2005, 7:38pm UTC](https://forum.kirupa.com/t/array-functionality-inside-classes/159616/1 "2005-08-18T19:38:22Z")

</div>

I have 4 defined private arrays defined in the constructor of my class.

Later down in one of the methods, im trying to push() variables into these arrays, but nothing seems to happen. I tried using this.arrayname.push(), but that doesn’t seem to work either.

any ideas? do i need to manually push them by this.arrayname[arrayname.length+1] = “”;
