first 4 tasks from JS Arrays homework