var a,b,c a=2 b=2 c=2 if (a==b) { document.write(c); } else if (b==c) { document.write("c"); } else { document.write("a"); }