Let $$ A \colon= \left\{ (x, y) \in \mathbb{R}^2 \colon \, 0 < x \leq 1, \ y = \sin \frac1x \right\} $$ and $$ B \colon= \left\{ (x, y) \in \mathbb{R}^2 \colon \, y=0, \ -1 \leq x \leq 0 \right\}, $$ and let $$ S \colon= A \cup B. $$
Is this $S$ (when regarded as a subspace of $\mathbb{R}^2$) connected? arcwise connected? If (arcwise) connected, how? If not, why not?
I know that both of $A$ and $B$ are connected as well as arcwise connected, but I'm not sure how to tackle their union. Here $A$ and $B$ are disjoint of course.
Moreover, $A$ is neither open nor closed, whereas $B$ is closed in $\mathbb{R}^2$ but not open.