a exercises for JavaScript