javascript - compare three variable using java script -


Hello I have three dynamic variables

The code below me is working to check whether All are equal

  if ((a == b) & amp; amp; (b == c)) {// they all are the same ...}   

However, I want to create a function near three variables so that it can be detected that one variable is equal to the other variable.

  a = 1; B = 2; C = 1; Acqual = Compare Veeble (A, B, C);   

should be isEqual here true .

How to make this function

  Compare function (a, b , C) {return a == b || B == C || C == one; }    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -