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