An Interactive Introduction to Fourier Transforms
Small Nitpick: You cannot reconstruct a square wave even if you use infinite fourier coefficients due to Gibbs phenomenon.(<a href="https://en.m.wikipedia.org/wiki/Gibbs_phenomenon" rel="nofollow">https://en.m.wikipedia.org/wiki/Gibbs_phenomenon</a>)