mardi 3 mars 2015

Compare string with with 2 strings simultaniously in JS

Why is this not working in JavaScript? I'm fairly new to programming.



var material = 'wood';

if (material != ('alu'||'plastic')) {
material = 'plastic';
}


Thanks in advance!


Aucun commentaire:

Enregistrer un commentaire