Understanding JS concepts: Part 2