I'm taking a code academy course on Javascript.
Code Academy writes functions in two different ways. Which one is more advantageous?
In the more basic lessons, they wrote functions like this:
var list = function() {
};
Then in more advanced lessons, we wrote functions like this:
function list() {
}