r/javascript • • Mar 31 '17

ES2018 First Look - it changes everything

https://www.youtube.com/watch?v=s-G_RZ4RJLU
464 Upvotes

120 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Apr 01 '17

[deleted]

2

u/[deleted] Apr 01 '17

Terminology may not be correct, but in practice the first one defines the function (non-hoisted) and the second ensures it isn't anonymous with regards console logs/errors.

See: https://github.com/airbnb/javascript#functions