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
Post a Comment