Cognizant interview question

what is the difference between covalent bond and ionic bond?