How JavaScript works: different ways of declaring functions and 5 best practices | Hacker News Reader