Since linear combinations of $\sin(kx)$ and $\cos(kx)$ for $n\in \mathbb{N}$ form a dense subset in $(C([-\pi , \pi]), \|\cdot \|_{\infty})$. We want to show that $\sin(kx)$ and $\cos(kx)$ are polynomial uniform limits in term of $x$ on the interval $[-\pi , \pi]$, and conclude that the set of polynomial functions is dense in $(C([-\pi , \pi]), \|\cdot \|_{\infty})$.
I am not sure how to prove this. I have proven that for $A, B\subset (X, d)$, if $B\subset \overline{A}$ and $B$ is $d$-dense in $X$ then $A$ is $d$-dense in $X$. I think this should help me but I don't know how to apply this my problem. If anyone has an idea, I would appreciate it.
Hints:
Use the Taylor expansion of $\sin(kx)$ and $\cos(kx)$ to find polynomials that approximate these functions. Then use some of the formulas for the remainder. Then you can estimate the reminder for a bound that does not depend on $x$. This bound should then go to $0$ as you increase the degree of the polynomial.
As for the overall question: For a given continuous function, first approximate it using a linear combination of $\sin(kx),\cos(kx)$, then use polynomials to approximate this linear combination. Using a triangle inequality should yield the result.