Each continuous mapping between compact oriented manifolds of the same dimension has a degree, which is an integer number.
Let $f$ be a continuous mapping from the $n$-dimensional ball $\mathbb{B}^n$ to itself. Suppose $f$ maps the boundary of $\mathbb{B}^n$ to itself. So we can define a mapping $g$, which is the restriction of $f$ to the $(n-1)$-dimensional boundary of $\mathbb{B}^n$.
Is there any relation between the degree of $f$ (as an $n$-dimensional mapping) and the degree of $g$ (as an $(n-1)$-dimensional mapping)?
In particular, is it true that $\deg(f)=\deg(g)$?