I'd recommend learning scales first. You won't truly be able to understand chords until you understand the theory behind scales and how they are constructed. Then, you can dive into learning chords, and everything will make a lot more sense!