different function styles
Hello, the standard js function structure looks like this:
function Test()
{
alert('Test');
}
However, I'm seeing some functions in code with this style:
Test = function()
{
alert('Test');
}
What's the difference between these 2 different styles and in what scenarios would you implement the second style instead of the first style?