what is the difference between (!a==b) and (a != b) in JS?

if(openmenu != para){
addClass(openmenu , 'collapsed');
}

I am a beginner of JS, I want to add a classname to a element after a if statement. However, if(openmenu != para) and if(!openmenu == para) showed completely different result. Does anyone know why?