Looking at the equation y = 8, it has no value of x.
That means x can assume any value, whereas y is always equal to 8.
The line of this equation is a horizontal line, because all points have the same y-coordinate.
The slope of a horizontal line is equal to 0.
We can also calculate the slope between the points (0, 8) and (1, 8), that are on this line, with the formula below:
Therefore the slope is 0.