Working in a Cartesian closed category we have have an exponential object $X^Y$ for object $X$ and $Y$. There are isomorphisms $1^X \cong 1$, $X^Y \times X^Z \cong X^{Y + Z}$, $X^1 \cong X$ and a few others, just like with sets. Now nlab claims they can be proven by the usual Yoneda arguments. I don't understand how to do this. See also this related question. I don't understand how this works. Let us look at that answer first.
By definition of a power object, there is a bijection between $\operatorname{Hom}(x, a^1)$ and $\operatorname{Hom}(x \times a, 1)$. Since $\operatorname{Hom}(x \times a, 1)$ contains just one element, there is a bijection $\operatorname{Hom}(x \times a, 1) \cong \operatorname{Hom}(x, a)$ as well, so $\operatorname{Hom}(x, a^1) \cong \operatorname{Hom}(x, a)$. I don't see how we can apply Yoneda to conclude there is an isomorphism between $a$ and $a^1$.