I already know that if $X$ is a compact metric space then the space of continuous real valued functions $C(X \to \mathbb R)$ are separable. What I'm trying to prove that if $X$ is a locally compact metric space and is $\sigma$-compact. The space of continuous compactly supported functions $C_c( X \to \mathbb R)$ are separable.
Here's my approach: As $X$ is $\sigma$-compact, we can write $X = \bigcup_{ n=1}^\infty K_n$, where $K_n$ are compact and increasing. Then since each $C(K_n \to \mathbb R)$ is separable, it suffices to show that the set $ \{ f \in C_c (X \to \mathbb R) : \operatorname{supp}(f) \subset K_n \}$ is dense in $C(X \to \mathbb R)$ (Not sure). Then get I stuck.
Any help is appreciated.