In your algebra / precalculus course you might be using methods such as "completing the square" and "vertex form" to study properties of quadratics.
Let's complete the square on the quadratic $f(x) = x^2 + 2x -3$ so we can put $f(x)$ into vertex form.
$f(x) + 3 = x^2 + 2x$
$f(x) + 3 + 1 = x^2 + 2x + 1$
$f(x) + 4 = (x+1)^2$
$f(x) = (x+1)^2 - 4.$
If this vertex form is something you are familiar with, then we know we must have a vertex on our quadratic at $(-1,-4)$, and $-1$ is in the domain we are interested in!
But, since the quadratic we originally started with, $f(x) = x^2 + 2x - 3$ is a parabola opening upwards, we know that the vertex is going to be the lowest point in the range on the domain we are considering. Now we just need to find the highest point, so we evaluate the endpoints of the domain we are considering. We check manually:
$f(-2) = (-2+1)^2 - 4 = -3$
$f(4) = (4+1)^2 - 4 = 5^2 -4 = 25 - 4 = 21.$
Now we have our highest point in the range, 21.
Since polynomials are continuous, we know we will hit every point from -4, up to 21, giving the range as [-4,21].