> 
> **Possible Duplicate:**  
> 
> [What is the difference between a function expression vs declaration in Javascript?](https://stackoverflow.com/questions/1013385/what-is-the-difference-between-a-function-expression-vs-declaration-in-javascrip) 
> 
> 
> 

I am a web developer with prime experience in HTML, ASP.NET. I know very little javascript, enough to do simple tasks in web programming. Lately, while reading Jquery and other complex javascript files, I have been observing lot of javascript code as below:

```
var increment = function(x){
    return x + 1;
}

```

I want to know if this is conceptually same as below, which I have been more used to :

```
function increment(x){
    return x + 1;
}

```

And, if its same, why am I seeing lot of use of first notation rather than second ?