samedi 10 février 2018

Variable with many values

Is there a way to make a variable equal to one thing or another? for example:

var x = a or b or c;

if (x == a || x == b || x == c)
// do this
else
// neither a, b or c

Aucun commentaire:

Enregistrer un commentaire