remember the formula for the slope of the line

For the blue line
point 1= (-3,2)
point 2= (4,-1)
find the slope

For the red line
point 1= (2,5)
point 2= (2,-3)
find the slope

Since the denominator is equal to 0 we can say that the line has an undefined slope.