# Use of var

**URL:** <https://forum.kirupa.com/t/use-of-var/218632>\
**Category:** Uncategorized\
**Created:** [March 9, 2007, 11:04am UTC](https://forum.kirupa.com/t/use-of-var/218632 "2007-03-09T11:04:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gvnirmal](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gvnirmal](https://forum.kirupa.com/u/gvnirmal)\
**Post date:** [March 9, 2007, 11:04am UTC](https://forum.kirupa.com/t/use-of-var/218632/1 "2007-03-09T11:04:27Z")

</div>

Hi All,  
I have a basic doubt…

I have used global declaration like:

var a:String ="";  
var b = 0;  
var c:String = “”;

and I have a written a function called abc

function abc()  
{  
a="";  
b= 0;  
c= “”;  
blah blah blah…!  
}

abc(); //calling this function

I want to know the difference between the first declaration and the second declaration…Is there a difference or is it a re-declaration…?

Plz help…!  
Thanks  
Nirmal.
