When there is only points and no lines, to find domain, you give the x values only, and to find the range you give the y values only.
When there is a line, for domain you go from left to right, and for range you go from bottom to top. The arrow indicates that the line is continuous, and so the second values for domain and range are infinity because we do not know the value.