Inactive Tutor answered 10/16/18
A example of a function that is not continuous on its domain is given by a piecewise function.
For example f(x) = { x+4, when x <= 0, x+5 when x > 0}. The function has a value at x = 0, f(0) = 4, so 0 is in the domain of the function. But it is not continuous at 0 because the limit does not exist as x-> 0 -- different values from left and right.