1If you use a function name as variable name, its value is replaced by
2function body.
3So var a becomes your function a and thus your alert displays function a.
4
5Edit But if you assign value to a like var a = "xya";.
6Then it function will be replaced by variable. As per Order of
7precedence
8
9!!Variable assignment takes precedence over function declaration!!
10!!Function declarations take precedence over variable declarations!!
11