JavaScript fundamentals homeworks