If $f$ is continuous function ($f:\mathbb{R}\rightarrow\mathbb{R}$), then there exists a sequence of polynomials which converges to $f$ on any compact subset of $\mathbb{R}$.
Proof: (Weierstrass) If $f$ is a continuous complex function on $[a,b]$, then there exists a sequence of polynomials $P_n$ such that $$\lim_{n\rightarrow\infty}P_n(x)=f(x)$$ uniformly on $[a,b]$.
Assume $K\subset\mathbb{R}$, compact, then it is certainly $K$ is bounded and closed. Since $K$ is bounded, $K$ (in real) contained in some interval. Let $A_n$ be the colosed interval $[-n,n]$, and let $\epsilon_n=1/n$. Then $\forall\epsilon_n>0$, by Weierstrass, there exists some sequence of polynomials $P_n(x)$ such that $\forall x\in A_n$, $|f(x)-P_n(x)|<\epsilon_n$. Using the fact that $$\lim_{n\rightarrow\infty}\epsilon_n=0$$ therefore, this constructed sequence of polynomials $P_n$, converges to $f$ on $K$.
Question: By such a construction, expanding intervals, are we taking subsequence of the previous sequence of polynomials?