Thank you for reporting, we will resolve it shortly
Q.
$HCl$ gas is covalent and $NaCl$ is an ionic compound. This is because
KCETKCET 2016Chemical Bonding and Molecular Structure
Solution:
$HCl (g)$ is covalent whereas $NaCl$ is an ionic solid due to small difference in their electronegativities.
In HCl, the difference in electronegativity of $H$ and Cl-atoms is less than $2.10$, whereas in $NaCl$, the difference in electronegativities of Na and Cl-atoms is more than $2.10$.
Electronegativity of $( Cl )=3.00$ (approx. value)
Electronegativity of $( Na )=0.88$ (approx. value)