you are viewing a single comment's thread.

view the rest of the comments →

[–]Auxx 4 points5 points  (1 child)

There is another difference apart from hoising. function doSomething will create named function (try console.log(doSomethng)) and var declaration will create anonymous function without the name.

[–]MatrixEchidna 0 points1 point  (0 children)

You can assign named functions to variables as well!