Calculus: Early Transcendentals 8th Edition

This is not true. The function $$f(x)=\left\{_{1,\quad x\geq 0}^{-1,\quad x<0}\right.$$ is not continuous at $x=0$, but the function $|f(x)|=1$ is continuous.