Using the definition of even functions, $f(-x) = f(x) = 3$, hence it is an even function.
Also, it is being mentioned that if $f(x)$ is an even power of $x$, then it is an even function of $x$. Same for an odd function.
We know that the equation of a horizontal line in slope-intercept form is $y = mx + b$ where $m$ is the slope and $b$ is the $y$-intercept.
That means, the equation of the horizontal line $y = 3$ can be written as,
$y = 0x^1 + 3$
where $m = 0$ and b = 3.
Therefore,
$y = f(x) = 0x^1 + 3 = 0x^1 + 3x^0$
Now, what is the power of the function above, $0$ or $1$?
I want to apply the even power method to determine whether $f(x) = 3$ is an even function or let any function having multiple terms with $x^n$ to determine whether it is an even function (or an odd function let's say) just by using the power method.
Generally, we say the degree of a polynomial is given by the largest power of $x$ with a nonzero coefficient.
Hence, $x^2$ and $x^2 + 0x^3 + 0x^4 + 0x^{100}$ are both degree-$2$ polynomials.
We interpret the constant-function case as a polynomial of degree $0$ (hence even).