what is the slope of a vertical line?

The slope of a vertical line is undefined. This is because a vertical line's equation is in the form x = k, where k is a constant. In this case, the change in y is undefined since the line does not have a y-intercept and does not have any change in y as x varies.