Javascript chapter 2 question 3