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