Horje
can the name of function be the same with name of variable js Code Example
can the name of function be the same with name of variable js
If you use a function name as variable name, its value is replaced by 
function body. 
So var a becomes your function a and thus your alert displays function a.

Edit But if you assign value to a like var a = "xya";. 
Then it function will be replaced by variable. As per Order of 
precedence

!!Variable assignment takes precedence over function declaration!!
!!Function declarations take precedence over variable declarations!!




Javascript

Related
dom event Code Example dom event Code Example
this.webview.postmessage is not a function reactnative Code Example this.webview.postmessage is not a function reactnative Code Example
jquery select2 hide search box Code Example jquery select2 hide search box Code Example
remove port number from url node js Code Example remove port number from url node js Code Example
testing Code Example testing Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7