Nitrogen, sulphur, and halogens are covalently bonded in organic compounds. For their detection, they have to be first converted to ionic form. This is done by fusing the organic compound with sodium metal. This is called “Lassaigne’s test”. The chemical equations involved in the test are

Carbon, nitrogen, sulphur, and halogen come from organic compounds.