Across a resistor, both the voltage and the current goes up and down at the same time, they are said to be in phase, but with an impedance it's different, the voltage is shifted by 1/4 wavelength behind the current in a capacitor, and forward in an inductor.