For the linear function f, the graph of y=f(x) in the xy-plane has a slope of 3 and has a y-intercept at (0,4). Which equation defines f?
f(x)=3x+4
f(x)=4x+3
f(x)=−3x+4
f(x)=31x+4