Why is the graph of $y=(x^2+x-6)/(x-2)$ the same as the graph of $y=x+3$, and a continuous function?
I understand that this is because $$ \frac{x^2+x-6}{x-2} = \frac{(x+3)(x-2)}{x-2} = x+3. $$ But my problem with this is that in $(x-2)$, when $x=2$ the denominator will be $0$. So shouldn't there be a break here, because if $y=(x^2+x-6)/(x-2)$, then $y$ should then be undefined? So why can $y=(x^2+x-6)/(x-2)$ still be considered continuous and equal to $y=x+3$?
Please try to explain this simply. I'm still just beginning Khan Academy calculus. Thank you.