Some exercises on js