Beginner javascript examples