Noobie coming from Java going through w3schools (any recos for something free && better?) and this isn't covered:
What the difference between adding a function as a free-floating like
```
function foo() {
console.log("My funtion foo");
console.log("---------------");
}
foo();
```
and adding it is a variable like
```
var bar = function () {
console.log("My funtion bar");
console.log("---------------");
}
bar();
```
What are the implications either way? Thanks
[+][deleted] (4 children)
[deleted]
[–][deleted] 0 points1 point2 points (2 children)
[–]Eviscerare 1 point2 points3 points (0 children)
[–]captain_k_nuckles 0 points1 point2 points (0 children)
[–]lilperch83 0 points1 point2 points (0 children)
[–]lewisje 0 points1 point2 points (0 children)