mercredi 29 mars 2017

var == value or value == var , which is standard way? [on hold]

I have seen at many place developer using to compare value == var like

if ('https' === location.protocol) {
   port = 8443;
   protocol = 'wss://';
   isSecure = true;
}

I know it does not effect , as a== b is same as b ==a but as i couldn't find anything on this so I want to know

Which is standard way and is there really any standard for this ?

Aucun commentaire:

Enregistrer un commentaire