How to make a function of series expansion

I am trying to create a function but get an error message:

f[x_] = Normal@Series[Exp[-x^2], {x, 0, 14}]

Any way to circumvent that Hold attribute?

I do not get any error message. I looks perfectly OK to me.
Maybe you just have to do a clean start of your notebook.

Henrik

yes , indeed, I should have cleared previous definitions.

Also you want to use a delayed assignment ( := )rather than an immediate one ( = ). Almost always this is what you’d want to do when creating a function.

f[x_] := Normal@Series[Exp[-x^2], {x, 0, 14}]