Answer
See explanations.
Work Step by Step
The function value at $x=a$ may be different from the limit or it may even be undefined. When evaluating $\lim_{x\to a}f(x)$, we are only interested in the value to which the function approaches when $x\to a$.