We know that if $f$ is cont. on $[a,b]$, then there exists a sequence of polynomials $(P_n)$ such that $P_n\to f$ uniformly.(*)
Now the question is that if $f$ is cont. on $\mathbb{R}$, how can we show that there exist a sequence of polynomials such that $P_n\to f$ uniformly on each bounded subset of $\mathbb{R}$? Can we say that since $f$ is cont. on $\mathbb{R}$, it is cont. on any interval, then use (*)? Any help would be appreciated. Thank you