# The point of "var"

**URL:** <https://forum.kirupa.com/t/the-point-of-var/176947>\
**Category:** flash\
**Created:** [January 28, 2006, 7:58am UTC](https://forum.kirupa.com/t/the-point-of-var/176947 "2006-01-28T07:58:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [January 28, 2006, 7:58am UTC](https://forum.kirupa.com/t/the-point-of-var/176947/1 "2006-01-28T07:58:17Z")

</div>

I never really payed much attention to var…whats the point?

I think it restricts the variable to a number? strict data typing?

Does it do like Game Maker 6.1 so that if u define the variable i as a “var” cause u want to use it in a loop, then the object that called the loop wont have i=10 as one of its variables?

so if an object (or \_root) calls heaps of loops, then by making i,k,n or whatever variable u use a var, does it stop you getting an object ( or \_root ) littered with useless vars?

or are there any other benefits?
