$f$ is continuous $\iff$ $\forall S \subseteq X, f(\text{cl}(S)) \subseteq \text{cl}(f(S))$
for any $A\subseteq X$, $f(\overline{A})\subseteq\overline{f(A)}$ , if and only if $f: X \to Y$ is continuous.