# VAR vs. CONST

**URL:** https://forum.kirupa.com/t/var-vs-const/271378
**Category:** flash
**Created:** [September 22, 2008, 1:56pm UTC](https://forum.kirupa.com/t/var-vs-const/271378 "2008-09-22T13:56:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ad\_sign](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@ad\_sign](https://forum.kirupa.com/u/ad_sign)
#### Post date: [September 22, 2008, 1:56pm UTC](https://forum.kirupa.com/t/var-vs-const/271378/1 "2008-09-22T13:56:14Z")

</div>

Ok, here goes the first prompt: consts are expired at the end of functions?  
And the second one: what’s the real advantage of using it instead of vars?
