# Array.toString still acting like an array

**URL:** <https://forum.kirupa.com/t/array-tostring-still-acting-like-an-array/241858>\
**Category:** Uncategorized\
**Created:** [October 18, 2007, 8:10pm UTC](https://forum.kirupa.com/t/array-tostring-still-acting-like-an-array/241858 "2007-10-18T20:10:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dru\_nasty](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dru\_nasty](https://forum.kirupa.com/u/dru_nasty)\
**Post date:** [October 18, 2007, 8:10pm UTC](https://forum.kirupa.com/t/array-tostring-still-acting-like-an-array/241858/1 "2007-10-18T20:10:19Z")

</div>

```auto
myArray = new Array();
myArray = ["23.55", "100.23", "97.88"];

var wtf:String = myArray.slice(0,1);

wtf.toString;

trace(wtf.length);

```

I’m trying to get the length of the wtf variable but it keeps tracing out 1 as if it’s counting the length of the sliced array.  
Any suggestions?
