Answer
The limit of the function is 2.
Work Step by Step
As we get close to x=2 from the left we approach y=2. Also as we get close to x=2 from the right we approach y=2. Since we approach the same value from both sides then the limit is equal to 2.
Notice that at x=2 the function is defined to be 0, or f(2)=0, however from the graph we can see that the limit as we get closer and closer to x=2 from both sides is approaching 2 and not 0.