javascript ArraysHW tasks 1-2 solved