I use only jQuery for writing JavaScript code. One thing that confuses me is these two approaches of writing functions,
First approach
The first one is a function expression,
var calculateSum = function(a, b) { return a + b; } alert(calculateSum(5, 5)); // Alerts 10
The second one is a plain function declaration.