Here is Prob. 3, Sec. 29, in the book Topology by James R. Munkres, 2nd edition:
Let $X$ be a locally compact space. If $f \colon X \to Y$ is continuous, does it follow that $f(X)$ is locally compact? What if $f$ is both continuous and open? Justify your answer.
I know that if $f$ is both continuous and open, then $f(X)$ is locally compact. Here is a Math Stack Exchange post containing a proof of how this holds?
What if $f$ is a continuous map that is not open?
I know that there is no such example of a continuous map $f \colon \mathbb{R} \to \mathbb{Q}$, though $\mathbb{R}$ is locally compact and $\mathbb{Q}$ is not, because every such map is constant, as has been discussed here and here.
Can we construct a counter-example of a (surjective) mapping $f \colon \mathbb{R}^n \to \mathbb{R}^\omega$?
After all, $\mathbb{R}^n$ is locally compact, whereas $\mathbb{R}^\omega$ is not, as has been discussed in Example 2, Sec. 29, in Munkres.