how do you know when the line crosses the y axis while doing y interept, slope

A line crosses the y-axis when x = 0

replace x with zero in the equation and solve for y