For the function y = 3, all y values will be 3, no matter the value of x.
This function is simply a straight line, and so it has a slope of 0.
However, it is a legitimate function.