Clock = violet
Data = green
Output = orange
During a high clock pulse, the D-Latch is tranparent to any changes made at the Data input.
When Clock reaches low state, the last state from Data is stored until the next high Clock pulse.
The transparentness is not very useful so normally you should use a D-Flipflop, which I'm going to upload soon.