# Possible to get variable names created within a function?

**URL:** <https://forum.kirupa.com/t/possible-to-get-variable-names-created-within-a-function/331809>\
**Category:** flash\
**Created:** [October 28, 2013, 9:34pm UTC](https://forum.kirupa.com/t/possible-to-get-variable-names-created-within-a-function/331809 "2013-10-28T21:34:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cakepizza](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@cakepizza](https://forum.kirupa.com/u/cakepizza)\
**Post date:** [October 28, 2013, 9:34pm UTC](https://forum.kirupa.com/t/possible-to-get-variable-names-created-within-a-function/331809/1 "2013-10-28T21:34:10Z")

</div>

Lets say I have this function.

```auto
function AAA()
{
var BBB;
function CCC(){}
}

```

and I want to trace out that function “AAA” declares a var named “BBB” and a function named “CCC” within itself. Is this at all possible?  
Thanks!
